2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 #define ALIB_NO_INLINE_STDARG
8 #include <intuition/classes.h>
10 #include <proto/alib.h>
11 #include "alib_intern.h"
13 /******************************************************************************
16 #include <intuition/classusr.h>
17 #include <proto/alib.h>
27 Invokes a method on a BOOPSI object, as if the object were an instance
28 of the superclass of the class passed in. That is, the dispatcher of
29 the superclass is called instead of the object's class's dispatcher
30 (assuming the specified class is the object's own class).
33 cl - Class whose superclass's dispatcher is to be called. This is
34 typically the object's own class.
35 obj - The object on which the method is to be performed.
36 message - The message. The first field is the same for all methods and
37 specifies which method is to be invoked (see
38 <intuition/classusr.h>).
41 Class and method dependent. See the class documentation. A value of 0
42 can mean a valid return code but can also mean that a method was not
52 intuition.library/NewObjectA(), intuition.library/SetAttrsA(),
53 intuition.library/GetAttr(), intuition.library/DisposeObject(),
54 DoMethodA(), CoerceMethodA(), <intuition/classes.h>
56 ******************************************************************************/
60 return CALLHOOKPKT((struct Hook
*)cl
->cl_Super
, obj
, message
);
61 } /* DoSuperMethodA() */
64 IPTR
DoSuperMethod (Class
* cl
, Object
* obj
, STACKULONG MethodID
, ...)
68 AROS_SLOWSTACKMETHODS_PRE(MethodID
)
69 retval
= CALLHOOKPKT((struct Hook
*)cl
->cl_Super
, obj
, AROS_SLOWSTACKMETHODS_ARG(MethodID
));
70 AROS_SLOWSTACKMETHODS_POST
71 } /* DoSuperMethod()*/