(C) 1998 AROS - The Amiga Research OS


NAME
#include <aros/asmcall.h>
#include <proto/alib.h>

IPTR HookEntry (hook , object , param)

SYNOPSIS
struct Hook * hook
APTR object
APTR param

FUNCTION
Some high level languages (HLL) don't allow to pass arguments in registers. For these HLLs, it's not possible to call a hook directly. To use hooks with these HLLs, you must put HookEntry into hook->h_Entry and the real callback function into hook->h_SubEntry. HookEntry will push the registers on the stack and then call hook->h_SubEntry.

INPUTS
hook
Call this hook.
object
This is the object which is passed to the hook. The valid values for this parameter depends on the definition of the called hook.
param
Pass these parameters to the specified object

RESULT
The return value depends on the definition of the hook.

EXAMPLE

SEE ALSO
CallHookA(), CallHook()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
27.01.1997 ldp
Include proto instead of clib
28.11.1996 aros
A couple of new functions in amiga.lib

Easier code to handle stacktags and stackmethods.