home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / misc / vcb.lha / vcb / domethod.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-03  |  754 b   |  32 lines

  1. #include <intuition/classes.h>
  2.  
  3. ULONG CoerceMethodA( Class *class, Object *object, Msg msg )
  4. {
  5.     return CallHookPkt( &class->cl_Dispatcher, object, msg );
  6. }
  7.  
  8. ULONG CoerceMethod( Class *class, Object *object, ULONG MethodID, ... )
  9. {
  10.     return CoerceMethodA( class, object, (Msg)&MethodID );
  11. }
  12.  
  13. ULONG DoMethodA( Object *object, Msg msg )
  14. {
  15.     return CoerceMethodA( OCLASS( object ), object, msg );
  16. }
  17.  
  18. ULONG DoMethod( Object *object, ULONG MethodID, ... )
  19. {
  20.     return DoMethodA( object, (Msg)&MethodID );
  21. }
  22.  
  23. ULONG DoSuperMethodA( Class *class, Object *object, Msg msg )
  24. {
  25.     return CoerceMethodA( class->cl_Super, object, msg );
  26. }
  27.  
  28. ULONG DoSuperMethod( Class *class, Object *object, ULONG MethodID, ... )
  29. {
  30.     return DoSuperMethodA( class, object, (Msg)&MethodID );
  31. }
  32.