[project @ 1996-07-25 20:43:49 by partain]
[ghc-hetmet.git] / ghc / runtime / hooks / OutOfHeap.lc
1 \begin{code}
2 #include "rtsdefs.h"
3
4 void
5 OutOfHeapHook (W_ request_size, W_ heap_size) /* both sizes in bytes */
6 {
7     fprintf(stderr, "Heap exhausted;\nwhile trying to allocate %lu bytes in a %lu-byte heap;\nuse `+RTS -H<size>' to increase the total heap size.\n",
8         request_size,
9         heap_size);
10 }
11 \end{code}