home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / new / util / cdity / yak / src / code.h < prev    next >
C/C++ Source or Header  |  1994-10-12  |  1KB  |  51 lines

  1. #ifndef CODE_H
  2. #define CODE_H
  3.  
  4.  
  5. #ifndef INTUITION_INTUITIONBASE_H
  6. #include <intuition/intuitionbase.h>
  7. #endif
  8.  
  9. /* Compiler specific stuff */
  10.  
  11. #ifdef _DCC             /* DICE */
  12.  
  13. #  define __AMIGADATE__ "("__DATE__")"
  14.  
  15. #  define ASM
  16. #  define SAVEDS       __geta4 
  17. #  define STACKARGS    __stkargs
  18. #  define WBMsg        _WBMsg
  19. #  define REG(x)       __ ## x
  20.   
  21. #  define MAIN         _main
  22.  
  23. #else                           /* SAS */
  24.  
  25. #  define ASM          __asm
  26. #  define SAVEDS       __saveds
  27. #  define STACKARGS    __stdargs
  28. #  define WBMsg        _WBenchMsg
  29. #  define REG(x)       register __ ## x
  30.  
  31. #  define MAIN         __main
  32.  
  33. #endif
  34.  
  35.  
  36. #define AW   ((struct IntuitionBase *)IntuitionBase)->ActiveWindow
  37. #define AWS  ((struct IntuitionBase *)IntuitionBase)->ActiveWindow->WScreen
  38. #define AS   ((struct IntuitionBase *)IntuitionBase)->ActiveScreen
  39. #define FS   ((struct IntuitionBase *)IntuitionBase)->FirstScreen
  40.  
  41. /* for debugging purpose : to locate enforcer hits which don't have hunk numbers */
  42. #ifdef DEBUG
  43. #  define DO_ENFORCER_HIT {char *x; x = NULL; *x= 0;}
  44. #  define DO_ENFORCER_HIT_VAL(n) {char *x; x = NULL; *x= n;}
  45. #else
  46. #  define DO_ENFORCER_HIT 
  47. #  define DO_ENFORCER_HIT_VAL(n) 
  48. #endif
  49.  
  50. #endif
  51.