home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / os-include / inline / dtclass.h < prev    next >
C/C++ Source or Header  |  1994-09-22  |  813b  |  45 lines

  1. #ifndef _INLINE_DTCLASS_H
  2. #define _INLINE_DTCLASS_H
  3.  
  4. #include <sys/cdefs.h>
  5. #include <inline/stubs.h>
  6.  
  7. __BEGIN_DECLS
  8.  
  9. #ifndef BASE_EXT_DECL
  10. #define BASE_EXT_DECL
  11. #define BASE_EXT_DECL0 extern struct Library * DTClassBase;
  12. #endif
  13. #ifndef BASE_PAR_DECL
  14. #define BASE_PAR_DECL
  15. #define BASE_PAR_DECL0 void
  16. #endif
  17. #ifndef BASE_NAME
  18. #define BASE_NAME DTClassBase
  19. #endif
  20.  
  21. BASE_EXT_DECL0
  22.  
  23. extern __inline Class *
  24. ObtainEngine (BASE_PAR_DECL0)
  25. {
  26.   BASE_EXT_DECL
  27.   register Class * _res  __asm("d0");
  28.   register struct Library *a6 __asm("a6") = BASE_NAME;
  29.   __asm __volatile ("jsr a6@(-0x1e)"
  30.   : "=r" (_res)
  31.   : "r" (a6)
  32.   : "a0","a1","d0","d1", "memory");
  33.   return _res;
  34. }
  35.  
  36. #undef BASE_EXT_DECL
  37. #undef BASE_EXT_DECL0
  38. #undef BASE_PAR_DECL
  39. #undef BASE_PAR_DECL0
  40. #undef BASE_NAME
  41.  
  42. __END_DECLS
  43.  
  44. #endif /* _INLINE_DTCLASS_H */
  45.