2018-07-20 15:41:58 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-13 08:31:05 +01:00
|
|
|
//__builtin_va_list could be used instead
|
|
|
|
typedef char *va_list;
|
2018-08-06 21:00:58 +02:00
|
|
|
#define va_start(v, l) ((v) = (va_list) & (l) + sizeof(l))
|
|
|
|
#define va_end(v) ((v) = NULL)
|
2020-04-27 00:14:37 +02:00
|
|
|
#define va_arg(v, type) (*(type *)(((v) += sizeof(type)) - sizeof(type)))
|