source: bootcd/isolinux/syslinux-6.03/efi32/include/efi/efistdarg.h @ e16e8f2

Last change on this file since e16e8f2 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 572 bytes
Line 
1#ifndef _EFISTDARG_H_
2#define _EFISTDARG_H_
3
4/*++
5
6Copyright (c) 1998  Intel Corporation
7
8Module Name:
9
10    devpath.h
11
12Abstract:
13
14    Defines for parsing the EFI Device Path structures
15
16
17
18Revision History
19
20--*/
21#ifdef __GNUC__
22#include "stdarg.h"
23#else
24#define _INTSIZEOF(n)   ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
25
26typedef CHAR8 * va_list;
27
28#define va_start(ap,v)  ( ap = (va_list)&v + _INTSIZEOF(v) )
29#define va_arg(ap,t)    ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
30#define va_end(ap)  ( ap = (va_list)0 )
31#endif
32
33#endif  /* _INC_STDARG */
Note: See TracBrowser for help on using the repository browser.