1 /* $NetBSD: efistdarg.h,v 1.1 2006/04/07 14:21:29 cherry Exp $ */
2 /* $FreeBSD: src/sys/boot/efi/include/efistdarg.h,v 1.1 2001/06/09 16:49:49 dfr Exp $ */
9 Copyright (c) 1998 Intel Corporation
17 Defines for parsing the EFI Device Path structures
25 #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
27 typedef CHAR8
* va_list;
29 #define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
30 #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
31 #define va_end(ap) ( ap = (va_list)0 )
34 #endif /* _INC_STDARG */