Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
614 B

  1. /***
  2. *stdarg.h - defines ANSI-style macros for variable argument functions
  3. *
  4. * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines ANSI-style macros for accessing arguments
  8. * of functions which take a variable number of arguments.
  9. * [ANSI]
  10. *
  11. *******************************************************************************/
  12. #ifndef _VA_LIST_DEFINED
  13. typedef char *va_list;
  14. #define _VA_LIST_DEFINED
  15. #endif
  16. #define va_start(ap,v) ap = (va_list)&v + sizeof(v)
  17. #define va_arg(ap,t) ((t *)(ap += sizeof(t)))[-1]
  18. #define va_end(ap) ap = NULL