mirror of
https://github.com/frida/tinycc
synced 2024-12-01 03:47:01 +03:00
15 lines
360 B
C
15 lines
360 B
C
#ifndef _STDARG_H
|
|
#define _STDARG_H
|
|
|
|
typedef char *va_list;
|
|
|
|
/* only correct for i386 */
|
|
#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)))
|
|
#define va_end(ap)
|
|
|
|
/* fix a buggy dependency on GCC in libio.h */
|
|
typedef va_list __gnuc_va_list;
|
|
|
|
#endif
|