SBSPSS/tools/psyq/include/STDARG.H
2000-08-29 16:26:01 +00:00

28 lines
551 B
C

/*
* File:stdarg.h
*/
/*
* $PSLibId: Run-time Library Release 4.7$
*/
#ifndef _STDARG_H
#define _STDARG_H
#define __va_rounded_size(TYPE) \
(((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#define va_start(AP, LASTARG) \
(AP = ((char *)&(LASTARG) + __va_rounded_size(LASTARG)))
#define va_end(AP) AP = (char *)NULL
#define va_arg(AP, TYPE) \
(AP = ((char *) (AP)) += __va_rounded_size (TYPE), \
*((TYPE *) ((char *) (AP) - __va_rounded_size (TYPE))))
typedef void *va_list;
#endif /* _STDARG_H */