[go: up one dir, main page]

Menu

[r1]: / include / stdarg.h  Maximize  Restore  History

Download this file

22 lines (12 with data), 523 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/* stdarg.h - Support for variable argument functions
By Pierre Sarrazin <http://sarrazip.com/>.
This file is in the public domain.
*/
#ifndef _stdarg_h_
#define _stdarg_h_
typedef unsigned int* va_list;
extern char* __va_arg(va_list* app, unsigned int sizeInBytes);
#define va_start(ap, lastFixed) do { (ap) = ((unsigned *) &(lastFixed)) + 1; } while (0)
#define va_arg(ap, type) (* (type *) __va_arg(&(ap), sizeof(type)))
#define va_end(ap) do {} while (0)
#endif /* _stdarg_h_ */