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