home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tlint1_0.zip / tlint1_0 / include / stdarg.h < prev    next >
C/C++ Source or Header  |  1995-11-08  |  581b  |  28 lines

  1. /*
  2.  * Copyright (c) 1995, by Thinkage Ltd.
  3.  *
  4.  * stdarg.h - interface for arbitrary argument functions
  5.  */
  6.  
  7. #ifndef _D_STDARG
  8. #   define _D_STDARG
  9. #   pragma idempotent
  10.  
  11. #    protoset stdarg
  12.  
  13.     typedef void *va_list[1]; 
  14.  
  15. #   define va_start(ap,parmN)   ((ap)[0] = ((&(parmN)) + 1))
  16.  
  17. #   define va_arg(ap,type)  (                               \
  18.         ((ap)[0] = __alignp( (ap)[0], __alignof(type) )),    \
  19.         (*(*(type **) &(ap)[0])++)                          \
  20.     )
  21.  
  22. #   define va_end(ap)   ((ap)[0] = NULL)
  23.  
  24.     void *
  25. __alignp( void *, unsigned );
  26.  
  27. #endif /* _D_STDARG */
  28.