mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-11-25 22:01:07 +00:00
11 lines
393 B
C
11 lines
393 B
C
#ifndef _INC_STDARG
|
|
#define _INC_STDARG
|
|
#ifndef _VA_LIST_DEFINED
|
|
typedef char * va_list;
|
|
#define _VA_LIST_DEFINED
|
|
#endif
|
|
#define _INTSIZEOF(n) ( (sizeof(n) + sizeof(int) - 1) & ~(sizeof(int) - 1) )
|
|
#define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
|
|
#define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
|
|
#define va_end(ap) ( ap = (va_list)0 )
|
|
#endif /* _INC_STDARG */
|