stdarg.h 324 B

1234567891011
  1. #ifndef __STDARG
  2. #define __STDARG
  3. typedef char *va_list;
  4. #define va_start(list, start) list = (char *)(&(start)+1)
  5. #define va_end(list)
  6. #define va_arg(list, mode) (sizeof(mode)==1 ? ((mode *) (list += 4))[-4] : \
  7. sizeof(mode)==2 ? ((mode *) (list += 4))[-2] : ((mode *) (list += sizeof(mode)))[-1])
  8. #endif /* __STDARG */