~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to rts/hooks/StackOverflow.c

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -----------------------------------------------------------------------------
 
2
 *
 
3
 * User-overridable RTS hooks.
 
4
 *
 
5
 * ---------------------------------------------------------------------------*/
 
6
 
 
7
#include "PosixSource.h"
 
8
#include "Rts.h"
 
9
 
 
10
#include <stdio.h>
 
11
 
 
12
void
 
13
StackOverflowHook (lnat stack_size)    /* in bytes */
 
14
{
 
15
    fprintf(stderr, "Stack space overflow: current size %ld bytes.\nUse `+RTS -Ksize -RTS' to increase it.\n", stack_size);
 
16
}
 
17