[ci skip] includes: detabify/dewhitespace rts/Hpc.h
[ghc.git] / includes / rts / Hooks.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 1998-2009
4 *
5 * User-overridable RTS hooks.
6 *
7 * Do not #include this file directly: #include "Rts.h" instead.
8 *
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #ifndef RTS_HOOKS_H
15 #define RTS_HOOKS_H
16
17 extern char *ghc_rts_opts;
18
19 extern void OnExitHook (void);
20 extern int NoRunnableThreadsHook (void);
21 extern void StackOverflowHook (W_ stack_size);
22 extern void OutOfHeapHook (W_ request_size, W_ heap_size);
23 extern void MallocFailHook (W_ request_size /* in bytes */, char *msg);
24 extern void defaultsHook (void);
25
26 #endif /* RTS_HOOKS_H */