2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: amiga.lib function CallHook() which doesn't use utility.library
9 #define ALIB_NO_INLINE_STDARG
11 #include <aros/system.h>
13 #include "alib_intern.h"
15 /******************************************************************************
18 #include <proto/alib.h>
28 Calls a hook with the specified object and parameters.
31 hook - Call this hook.
32 object - This is the object which is passed to the hook. The valid
33 values for this parameter depends on the definition of the called
35 param - Pass these parameters to the specified object
38 The return value depends on the definition of the hook.
49 ******************************************************************************/
51 return CALLHOOKPKT(hook
, object
, param
);
54 /******************************************************************************
65 Variadic form of CallHookA().
80 ******************************************************************************/
83 AROS_SLOWSTACKHOOKS_PRE(object
)
84 retval
= CALLHOOKPKT(hook
, object
, AROS_SLOWSTACKHOOKS_ARG(object
));
85 AROS_SLOWSTACKHOOKS_POST