source: buchla-68k/include/varargs.h@ ef7ae7e

Last change on this file since ef7ae7e was ef7ae7e, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added varargs.h header.

  • Property mode set to 100644
File size: 711 bytes
Line 
1/*
2 =============================================================================
3 varargs.h -- variable argument list macros
4 Version 3 -- 1987-06-16 -- D.N. Lynx Crowe
5
6 WARNING: Be sure that the 'mode' in the sizeof(mode) in va_arg
7 matches the size of the actual argument on the stack. If it doesn't,
8 improper argument list fetches will occur.
9 (Lattice has problems with this, as all arguments except double are
10 the same size.)
11 =============================================================================
12*/
13
14typedef char *va_list;
15
16#define va_dcl int va_alist;
17#define va_start(list) list = (char *) &va_alist
18#define va_end(list)
19
20#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
Note: See TracBrowser for help on using the repository browser.