This commit is contained in:
commit
47aee91ef4
396 changed files with 32003 additions and 0 deletions
27
tools/psyq/include/STDARG.H
Normal file
27
tools/psyq/include/STDARG.H
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* 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 */
|
Loading…
Add table
Add a link
Reference in a new issue