cosmopolitan/libc/integral/lp64arg.inc

18 lines
498 B
PHP
Raw Normal View History

#include "libc/runtime/valist.h"
2020-12-01 11:43:40 +00:00
#define __GNUC_VA_LIST 1
#define __gnuc_va_list va_list
2020-12-01 11:43:40 +00:00
#define va_end(AP)
#define va_copy(DST, SRC) ((DST)[0] = (SRC)[0])
#define va_start(AP, LAST) \
do { \
*(AP) = *(struct __va *)__va_area__; \
2020-12-01 11:43:40 +00:00
} while (0)
#define va_arg(AP, TYPE) \
(*(TYPE *)__va_arg(AP, sizeof(TYPE), _Alignof(TYPE), \
__builtin_reg_class(TYPE)))
2020-12-01 11:43:40 +00:00
typedef struct __va va_list[1];