summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include/stdarg.h
blob: 1742cb3f4e428a38572e3ece05b4d88bd54c1c1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _STDARG_H
#define _STDARG_H

typedef void * va_list;

#define va_start( ap, last ) do {	\
		ap = ( &last + 1 );	\
	} while ( 0 )

#define va_arg( ap, type ) ({		\
		type *_this = ap;	\
		ap = ( _this + 1 );	\
		*(_this);		\
	})

#define va_end( ap ) do { } while ( 0 )

#define va_copy( dest, src ) do {	\
		dest = src;		\
	} while ( 0 )

#endif /* _STDARG_H */