SBSPSS/tools/psyq/include/STDARG.H

28 lines
551 B
C++
Raw Normal View History

2000-08-29 18:26:01 +02:00
/*
* 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 */