#ifndef __STDARG_H #define __STDARG_H 1 #ifdef __cplusplus extern "C" { #endif typedef unsigned char * va_list; #define va_start(list, last) list = (unsigned char *)&last + sizeof(last) #define va_arg(list, type) *((type *)((list += sizeof(type)) - sizeof(type))) #define va_end(list) list = ((va_list) 0) #ifdef __cplusplus } #endif #endif /* __STDARG_H */