#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_copy(listcp,listva) listcp=listva #define va_arg(list, type) *((type *)((list += sizeof(type)) - sizeof(type))) #define va_end(list) list = ((va_list) 0) /*--------------------------------------------------*/ //#ifdef __need___va_list #define _VA_LIST_DEFINED #define __VALIST va_list #define __va_list va_list //#endif #ifdef __cplusplus } #endif /*--------------------------------------------------*/ #endif /* __STDARG_H */