1 /* -----------------------------------------------------------------------------
2 * $Id: Hooks.h,v 1.7 2004/02/15 13:29:44 krasimir Exp $
4 * (c) The GHC Team, 1998-1999
6 * User-overridable RTS hooks.
8 * ---------------------------------------------------------------------------*/
10 extern char *ghc_rts_opts;
12 extern void OnExitHook (void);
13 extern int NoRunnableThreadsHook (void);
14 extern void StackOverflowHook (unsigned long stack_size);
15 extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
16 extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
17 extern void defaultsHook (void);
19 extern void InitEachPEHook (void);
20 extern void ShutdownEachPEHook (void);