Only clear portion of framebuffer that's actually used (clearing 256MB
[cake.git] / compiler / alib / callhook.c
blob7e090266b6d9ee2146d7b645b04149988b0c87f9
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() */
52 /******************************************************************************
54 NAME */
55 IPTR CallHook (
57 /* SYNOPSIS */
58 struct Hook * hook,
59 APTR object,
60 ...)
62 /* FUNCTION
63 Variadic form of CallHookA().
65 INPUTS
67 RESULT
69 NOTES
71 EXAMPLE
73 BUGS
75 SEE ALSO
76 CallHookA()
78 ******************************************************************************/
81 AROS_SLOWSTACKHOOKS_PRE(object)
82 retval = CALLHOOKPKT(hook, object, AROS_SLOWSTACKHOOKS_ARG(object));
83 AROS_SLOWSTACKHOOKS_POST
84 } /* CallHook() */