/* ----------------------------------------------------------------------------- * $Id: Hooks.h,v 1.3 1999/02/05 16:02:22 simonm Exp $ * * (c) The GHC Team, 1998-1999 * * User-overridable RTS hooks. * * ---------------------------------------------------------------------------*/ extern void OnExitHook (void); extern void ErrorHdrHook (long fd); extern int NoRunnableThreadsHook (void); extern void StackOverflowHook (unsigned long stack_size); extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size); extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg); extern void PatErrorHdrHook (long fd); extern void defaultsHook (void); extern void PreTraceHook (long fd); extern void PostTraceHook (long fd);