#ifndef _VA_LIST_DEFINED typedef char * va_list; #define _VA_LIST_DEFINED #endif
typedef void (* pVOID)(void);
#define va_start(ap,v) ( ap = (va_list)&v + sizeof(v) ) #define va_arg(ap,t) (((t *)ap)++[0]) #define va_end(ap)
void mprintf( char *szTypes, ... ) { va_list vl; u8 temp; va_start( vl, szTypes );
temp = va_arg( vl, unsigned char); ...... } |