summaryrefslogtreecommitdiff
path: root/ghc/runtime/hooks/OutOfStk.lc
blob: 470562117a90e01340d60b18981af2ad924ff83a (plain)
1
2
3
4
5
6
7
8
9
10
\begin{code}
#include "rtsdefs.h"

void
StackOverflowHook (stack_size)
  I_ stack_size;    /* in bytes */
{
    fprintf(stderr, "Stack space overflow: current size %ld bytes.\nUse `+RTS -Ksize' to increase it.\n", stack_size);
}
\end{code}