2022-02-13 22:12:44 -05:00
|
|
|
#ifndef _STDARG_H
|
|
|
|
#define _STDARG_H
|
|
|
|
|
2022-02-13 15:07:26 -05:00
|
|
|
typedef unsigned long va_list;
|
2022-02-13 22:12:44 -05:00
|
|
|
|
2022-02-13 15:07:26 -05:00
|
|
|
#define va_start(list, arg) ((list) = (unsigned long)&arg)
|
|
|
|
#define va_arg(list, type) (*((type *)(list += ((sizeof(type) + 7) & 0xfffffffffffffff8))))
|
|
|
|
#define va_end(list)
|
2022-02-13 22:12:44 -05:00
|
|
|
|
|
|
|
#endif // _STDARG_H
|