XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
va_list.h
Go to the documentation of this file.
1
30
#ifndef __VA_LIST_H__
31
#define __VA_LIST_H__
32
33
#ifdef __cplusplus
34
extern
"C"
35
{
36
#endif
37
38
#ifndef _VALIST
39
#define _VALIST
40
typedef
unsigned
char
*
_va_list_
;
41
typedef
unsigned
char
*
va_list
;
42
#endif
43
44
#ifdef __cplusplus
45
}
46
#endif
47
48
49
#define STACKITEM int
50
51
#define VA_SIZE(TYPE) \
52
((sizeof(TYPE)+sizeof(STACKITEM)-1) \
53
& ~(sizeof(STACKITEM)-1))
54
55
#define va_start(AP, LASTARG) \
56
(AP = ((_va_list_)&(LASTARG)+VA_SIZE(LASTARG)))
57
58
#define va_end(AP)
59
60
#define va_arg(AP, TYPE) \
61
(AP += VA_SIZE(TYPE), *((TYPE *)(AP - VA_SIZE(TYPE))))
62
63
#endif
_va_list_
unsigned char * _va_list_
Definition
va_list.h:40
va_list
unsigned char * va_list
Definition
va_list.h:41
Generated by
1.9.8