Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / alib / callhook.c
blob5b530f6bc9e5588e807ec935e046c9224ef745ac
1 /*
2 Copyright © 1995-2001, 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 */
8 #include <aros/system.h>
9 #include <stdarg.h>
10 #include "alib_intern.h"
12 /******************************************************************************
14 NAME */
15 #include <proto/alib.h>
17 IPTR CallHookA (
19 /* SYNOPSIS */
20 struct Hook * hook,
21 APTR object,
22 APTR param)
24 /* FUNCTION
25 Calls a hook with the specified object and parameters.
27 INPUTS
28 hook - Call this hook.
29 object - This is the object which is passed to the hook. The valid
30 values for this parameter depends on the definition of the called
31 hook.
32 param - Pass these parameters to the specified object
34 RESULT
35 The return value depends on the definition of the hook.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
44 CallHook()
46 ******************************************************************************/
48 return CALLHOOKPKT(hook, object, param);
49 } /* CallHookA() */
51 IPTR CallHook (struct Hook * hook, APTR object, ...)
53 IPTR retval;
55 retval = CALLHOOKPKT(hook, object, &object+1);
57 return retval;
58 } /* CallHook() */