home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / BOOPSI / led_ic / classbase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-30  |  1.4 KB  |  52 lines

  1. #ifndef    CLASSBASE_H
  2. #define    CLASSBASE_H
  3.  
  4. /*****************************************************************************/
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <intuition/classes.h>
  9. #include <dos.h>
  10.  
  11. /*****************************************************************************/
  12.  
  13. #define ASM           __asm
  14. #define REG(x)          register __ ## x
  15.  
  16. /*****************************************************************************/
  17.  
  18. struct ClassLib
  19. {
  20.     struct ClassLibrary     cb_Library;
  21.     UWORD         cb_Pad;
  22.     APTR         cb_SysBase;
  23.     APTR         cb_UtilityBase;
  24.     APTR         cb_IntuitionBase;
  25.     APTR         cb_GfxBase;
  26.     BPTR         cb_SegList;
  27.  
  28. };
  29.  
  30. /*****************************************************************************/
  31.  
  32. #define SysBase        cb->cb_SysBase
  33. #define GfxBase        cb->cb_GfxBase
  34. #define IntuitionBase    cb->cb_IntuitionBase
  35. #define UtilityBase    cb->cb_UtilityBase
  36.  
  37. /*****************************************************************************/
  38.  
  39. LONG __stdargs DoMethod(Object *, ULONG, ...);
  40. LONG __stdargs DoMethodA(Object *, VOID *);
  41. LONG __stdargs DoSuperMethod(Class *, Object *, ULONG, ...);
  42. LONG __stdargs DoSuperMethodA(Class *, Object *, VOID *msg);
  43.  
  44. /*****************************************************************************/
  45.  
  46. kprintf(STRPTR,...);
  47. sprintf(STRPTR,...);
  48.  
  49. /*****************************************************************************/
  50.  
  51. #endif /* CLASSBASE_H */
  52.