home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 March / Amiga-CD 1996 #3.iso / demos / stormc-demo / include / stdarg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-19  |  563 b   |  29 lines

  1. #ifndef _INCLUDE_STDARG_H
  2. #define _INCLUDE_STDARG_H
  3.  
  4. /*
  5. **  $VER: stdarg.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  '(C) Copyright 1995 Haage & Partner Computer GmbH'
  9. **     All Rights Reserved
  10. */
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. typedef unsigned int va_list;
  17.  
  18. #define va_start(AP,LASTARG) (AP)=(unsigned int)(&LASTARG)+sizeof(LASTARG)
  19. #define va_arg(AP,TYPE) ((AP)+=sizeof(TYPE), \
  20.                          sizeof(TYPE)>1 ? ((AP)=(AP)+1&(-2)):(AP), \
  21.                          ((TYPE*)AP)[-1])
  22. #define va_end(AP)
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27.  
  28. #endif
  29.