efistdarg.h revision 77943
1/* $FreeBSD: head/sys/boot/efi/include/efistdarg.h 77943 2001-06-09 16:49:51Z dfr $ */
2#ifndef _EFISTDARG_H_
3#define _EFISTDARG_H_
4
5/*++
6
7Copyright (c) 1998  Intel Corporation
8
9Module Name:
10
11    devpath.h
12
13Abstract:
14
15    Defines for parsing the EFI Device Path structures
16
17
18
19Revision History
20
21--*/
22
23#define _INTSIZEOF(n)   ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
24
25typedef CHAR8 * va_list;
26
27#define va_start(ap,v)  ( ap = (va_list)&v + _INTSIZEOF(v) )
28#define va_arg(ap,t)    ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
29#define va_end(ap)  ( ap = (va_list)0 )
30
31
32#endif  /* _INC_STDARG */
33