matos/core/stdarg.h

8 lines
243 B
C
Raw Permalink Normal View History

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;
#define va_start(v, l) ((v) = (va_list) & (l) + sizeof(l))
#define va_end(v) ((v) = NULL)
#define va_arg(v, type) (*(type *)(((v) += sizeof(type)) - sizeof(type)))