home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 6 / Sonderheft_6-96.iso / demo-versionen / stormc_v1.05-demo / include / stdarg.h < prev    next >
C/C++ Source or Header  |  1996-11-03  |  582b  |  29 lines

  1. #ifndef _INCLUDE_STDARG_H
  2. #define _INCLUDE_STDARG_H
  3.  
  4. /*
  5. **  $VER: stdarg.h 1.0 (18.1.96)
  6. **  StormC Release 1.0
  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(vl,lastarg) (vl) = (unsigned int)(&lastarg) + sizeof(lastarg)
  19. #define va_arg(vl,type) ((vl) += sizeof(type), \
  20.                          sizeof(type) > 1 ? ((vl) = (vl) + 1 & 0xfffffffe) : (vl), \
  21.                          ((type *) vl)[-1])
  22. #define va_end(vl)
  23.  
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27.  
  28. #endif
  29.