Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
_cstdarg.h
Go to the documentation of this file.
1// -*- C++ -*-
2
30#ifndef _RWSTD_CSTDARG_H_INCLUDED
31#define _RWSTD_CSTDARG_H_INCLUDED
32
33
34#include <rw/_defs.h>
35
36
38
39extern "C" {
40
41#ifdef _RWSTD_VA_LIST
42typedef _RWSTD_VA_LIST va_list;
43#else
44typedef void* va_list;
45#endif // _RWSTD_VA_LIST
46
47
48#define va_arg(va, T) \
49 ((T*)(va = (va_list)((char*)va + sizeof (T))))[-1]
50
51#define va_start(va, name) \
52 (void)(va = (va_list)((char*)&name \
53 + ((sizeof (name) + (sizeof (int) - 1)) & ~(sizeof (int) - 1))))
54
55#define va_end(ignore) (void)0
56
57} // extern "C"
58
59} // namespace std
60
61
62#endif // _RWSTD_CSTDARG_H_INCLUDED
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
Definition json.h:5363