forked from KolibriOS/kolibrios
c2fbdf929c
git-svn-id: svn://kolibrios.org@1805 a494cfbc-eb01-0410-851d-a64ba20cac60
14 lines
381 B
C
14 lines
381 B
C
#ifndef __STDARG_H
|
|
#define __STDARG_H
|
|
|
|
typedef void *va_list;
|
|
|
|
#define __size(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int)-1))
|
|
|
|
#define va_start(ap, parmN) ((void)((ap) = (va_list)((char *)(&parmN)+__size(parmN))))
|
|
#define va_arg(ap, type) (*(type *)(((*(char **)&(ap))+=__size(type))-(__size(type))))
|
|
#define va_end(ap) ((void)0)
|
|
|
|
|
|
#endif /* __STDARG_H */
|