Source code of Windows XP (NT5)
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.

32 lines
526 B

  1. #ifndef _EFISTDARG_H_
  2. #define _EFISTDARG_H_
  3. /*++
  4. Copyright (c) 1998 Intel Corporation
  5. Module Name:
  6. devpath.h
  7. Abstract:
  8. Defines for parsing the EFI Device Path structures
  9. Revision History
  10. --*/
  11. #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
  12. typedef CHAR8 * va_list;
  13. #define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
  14. #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
  15. #define va_end(ap) ( ap = (va_list)0 )
  16. #endif /* _INC_STDARG */