summaryrefslogtreecommitdiff
path: root/05/stdarg.h
blob: 4df996ffd4afa2e698e152085f5839028399a1bf (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef _STDARG_H
#define _STDARG_H

typedef unsigned long va_list;

#define va_start(list, arg) ((list) = (unsigned long)&arg)
#define va_arg(list, type) (*((type *)(list += ((sizeof(type) + 7) & 0xfffffffffffffff8))))
#define va_end(list)

#endif // _STDARG_H