revert between 56095 -> 55830 in arch
[AROS.git] / compiler / alib / callhook.c
blobeba4da69b1b5a242218763ad2a456bd89826e11d
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: amiga.lib function CallHook() which doesn't use utility.library
6 Lang: english
7 */
9 #define ALIB_NO_INLINE_STDARG
11 #include <aros/system.h>
12 #include <stdarg.h>
13 #include "alib_intern.h"
15 /******************************************************************************
17 NAME */
18 #include <proto/alib.h>
20 IPTR CallHookA (
22 /* SYNOPSIS */
23 struct Hook * hook,
24 APTR object,
25 APTR param)
27 /* FUNCTION
28 Calls a hook with the specified object and parameters.
30 INPUTS
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
34 hook.
35 param - Pass these parameters to the specified object
37 RESULT
38 The return value depends on the definition of the hook.
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 CallHook()
49 ******************************************************************************/
51 return CALLHOOKPKT(hook, object, param);
52 } /* CallHookA() */
54 /******************************************************************************
56 NAME */
57 IPTR CallHook (
59 /* SYNOPSIS */
60 struct Hook * hook,
61 APTR object,
62 ...)
64 /* FUNCTION
65 Variadic form of CallHookA().
67 INPUTS
69 RESULT
71 NOTES
73 EXAMPLE
75 BUGS
77 SEE ALSO
78 CallHookA()
80 ******************************************************************************/
83 AROS_SLOWSTACKHOOKS_PRE(object)
84 retval = CALLHOOKPKT(hook, object, AROS_SLOWSTACKHOOKS_ARG(object));
85 AROS_SLOWSTACKHOOKS_POST
86 } /* CallHook() */