fff9db3c57
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3595 42af7a65-404d-4744-a932-0658087f49c3
24 lines
437 B
C
Executable File
24 lines
437 B
C
Executable File
#ifndef _RGMP_STDARG_H
|
|
#define _RGMP_STDARG_H
|
|
|
|
typedef char *va_list;
|
|
|
|
#define __va_size(type) \
|
|
(((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
|
|
|
|
#ifndef va_start
|
|
#define va_start(ap, last) \
|
|
((ap) = (va_list)&(last) + __va_size(last))
|
|
#endif
|
|
|
|
#ifndef va_arg
|
|
#define va_arg(ap, type) \
|
|
(*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
|
|
#endif
|
|
|
|
#ifndef va_end
|
|
#define va_end(ap) ((void)0)
|
|
#endif
|
|
|
|
#endif
|