1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2009
5 * User-overridable RTS hooks.
7 * Do not #include this file directly: #include "Rts.h" instead.
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://hackage.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
12 * ---------------------------------------------------------------------------*/
17 extern char *ghc_rts_opts;
19 extern void OnExitHook (void);
20 extern int NoRunnableThreadsHook (void);
21 extern void StackOverflowHook (unsigned long stack_size);
22 extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
23 extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
24 extern void defaultsHook (void);
26 #endif /* RTS_HOOKS_H */