home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -screenplay- / otherstuff / adoomppc_src / amiga_macros.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  951b  |  52 lines

  1. #ifndef _AMIGA_MACROS_H
  2. #define _AMIGA_MACROS_H
  3.  
  4. /*
  5.  *  amiga_macros.h - small macros for compiler specific stuff
  6.  *  This file is public domain.
  7.  */
  8.  
  9. #include <exec/types.h>
  10.  
  11. /*
  12.  * macros for function definitions and declarations
  13.  */
  14.  
  15. #ifdef __GNUC__
  16. #define REG(xn, parm) parm __asm(#xn)
  17. #define REGARGS __regargs
  18. #define STDARGS __stdargs
  19. #define SAVEDS __saveds
  20. #define ALIGNED __attribute__ ((aligned(4))
  21. #define FAR
  22. #define CHIP
  23. #define INLINE __inline__
  24. #else /* of __GNUC__ */
  25.  
  26. #ifdef __SASC
  27. #define REG(xn, parm) register __ ## xn parm
  28. #define REGARGS __asm
  29. #define SAVEDS __saveds
  30. #define ALIGNED __aligned
  31. #define STDARGS __stdargs
  32. #define FAR 
  33. #define CHIP __chip
  34. #define INLINE __inline
  35. #else /* of __SASC */
  36.  
  37. #ifdef _DCC
  38. #define REG(xn, parm) __ ## xn parm
  39. #define REGARGS
  40. #define SAVEDS __geta4
  41. #define FAR 
  42. #define CHIP __chip
  43. #define INLINE
  44. #endif /* _DCC */
  45.  
  46. #endif /* __SASC */
  47.  
  48. #endif /* __GNUC__ */
  49.  
  50.  
  51. #endif /* _AMIGA_MACROS_H */
  52.