summaryrefslogtreecommitdiff
path: root/rts/hooks/StackOverflow.c
blob: a395a3a1a53b66cb671483e91948845a913190ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* -----------------------------------------------------------------------------
 *
 * User-overridable RTS hooks.
 *
 * ---------------------------------------------------------------------------*/

#include "Rts.h"

#include <stdio.h>

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