home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / bullet.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  1.4 KB  |  48 lines

  1. #ifndef _INLINE_BULLET_H
  2. #define _INLINE_BULLET_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef BULLET_BASE_NAME
  9. #define BULLET_BASE_NAME BulletBase
  10. #endif
  11.  
  12. #define CloseEngine(glyphEngine) \
  13.     LP1NR(0x24, CloseEngine, struct GlyphEngine *, glyphEngine, a0, \
  14.     , BULLET_BASE_NAME)
  15.  
  16. #define ObtainInfoA(glyphEngine, tagList) \
  17.     LP2(0x30, ULONG, ObtainInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  18.     , BULLET_BASE_NAME)
  19.  
  20. #ifndef NO_INLINE_STDARG
  21. #define ObtainInfo(a0, tags...) \
  22.     ({ULONG _tags[] = { tags }; ObtainInfoA((a0), (struct TagItem *)_tags);})
  23. #endif /* !NO_INLINE_STDARG */
  24.  
  25. #define OpenEngine() \
  26.     LP0(0x1e, struct GlyphEngine *, OpenEngine, \
  27.     , BULLET_BASE_NAME)
  28.  
  29. #define ReleaseInfoA(glyphEngine, tagList) \
  30.     LP2(0x36, ULONG, ReleaseInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  31.     , BULLET_BASE_NAME)
  32.  
  33. #ifndef NO_INLINE_STDARG
  34. #define ReleaseInfo(a0, tags...) \
  35.     ({ULONG _tags[] = { tags }; ReleaseInfoA((a0), (struct TagItem *)_tags);})
  36. #endif /* !NO_INLINE_STDARG */
  37.  
  38. #define SetInfoA(glyphEngine, tagList) \
  39.     LP2(0x2a, ULONG, SetInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  40.     , BULLET_BASE_NAME)
  41.  
  42. #ifndef NO_INLINE_STDARG
  43. #define SetInfo(a0, tags...) \
  44.     ({ULONG _tags[] = { tags }; SetInfoA((a0), (struct TagItem *)_tags);})
  45. #endif /* !NO_INLINE_STDARG */
  46.  
  47. #endif /* _INLINE_BULLET_H */
  48.