2021-04-27 18:33:31 +02:00
|
|
|
#ifndef _STDARG_H_
|
|
|
|
#define _STDARG_H_
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2022-04-15 11:11:49 +02:00
|
|
|
typedef char* va_list;
|
|
|
|
#define va_start(ap, last) ap = ((char*)&(last)) + ((sizeof(last) + 3) & ~3)
|
|
|
|
#define va_arg(ap, type) (ap += (sizeof(type) + 3) & ~3, *(type*)(ap - ((sizeof(type) + 3) & ~3)))
|
2021-04-27 18:33:31 +02:00
|
|
|
#define va_copy(dest, src) (dest) = (src)
|
|
|
|
#define va_end(ap)
|
|
|
|
|
|
|
|
/* fix a buggy dependency on GCC in libio.h */
|
|
|
|
typedef va_list __gnuc_va_list;
|
|
|
|
#define _VA_LIST_DEFINED
|
|
|
|
|
2022-04-15 11:11:49 +02:00
|
|
|
#endif /* _STDARG_H */
|