Tidy up file headers and copyrights; point to the wiki for docs
[ghc-hetmet.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://hackage.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 (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);
25
26 #endif /* RTS_HOOKS_H */