PageRenderTime 30ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/CS/migrated/tags/R0_14_000/libs/cssys/amiga/macros.h

#
C++ Header | 52 lines | 33 code | 10 blank | 9 comment | 0 complexity | 70226d625033259bc8256578343c21d7 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0
  1. /*
  2. ** $VER: macros.h 0.1 (19.5.97)
  3. **
  4. **
  5. */
  6. #ifndef MACROS_H
  7. #define MACROS_H
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif /* EXEC_TYPES_H */
  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. #else /* of __GNUC__ */
  24. #ifdef __SASC
  25. #define REG(xn, parm) register __ ## xn parm
  26. #define REGARGS __asm
  27. #define SAVEDS __saveds
  28. #define ALIGNED __aligned
  29. #define STDARGS __stdargs
  30. #define FAR __far
  31. #define CHIP __chip
  32. #else /* of __SASC */
  33. #ifdef _DCC
  34. #define REG(xn, parm) __ ## xn parm
  35. #define REGARGS
  36. #define SAVEDS __geta4
  37. #define FAR __far
  38. #define CHIP __chip
  39. #endif /* _DCC */
  40. #endif /* __SASC */
  41. #endif /* __GNUC__ */
  42. #endif /* MACROS_H */