home *** CD-ROM | disk | FTP | other *** search
- // **************************************************************************
- // Copyright 1996 David Allison
- //
- // VV VV IIIIII SSSSS TTTTTT AA
- // VV VV II SS TT AA AA
- // VV VV II SSSS TT AA AA
- // VV VV II SS TT AAAAAAAA
- // VV IIIIII SSSS TT AA AA
- //
- // MULTI-THREADED C++ WIMP CLASS LIBRARY
- // for RISC OS
- // **************************************************************************
- //
- // P U B L I C D O M A I N L I C E N C E
- // -------------------------------------------
- //
- // This library is copyright. You may not sell the library for
- // profit, but you may sell products which use it providing
- // those products are presented as executable code and are not
- // libraries themselves. The library is supplied without any
- // warranty and the copyright owner cannot be held responsible for
- // damage resulting from failure of any part of this library.
- //
- // See the User Manual for details of the licence.
- //
- // *************************************************************************
-
- // global definitions to be used by all header files
- #ifndef __myargs_h
- #define __myargs_h
-
- #ifndef __EASY_C
-
- // this seems to be broken in Acorn C/C++ - lots of syntax errors
- // when va_arg is used. I'll replace it with my own definition
-
- #undef va_arg
- #define va_arg(ap,type) (sizeof(type) < 4 ? \
- (type) *(int *)((*(ap)+=4)-4) : \
- *(type *)((*(ap)+=sizeof(type))-sizeof(type)))
-
- #endif
-
- #endif
-