summaryrefslogtreecommitdiff
path: root/includes/RtsAPI.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-08-09 09:24:39 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-08-09 09:24:39 +0000
commit7b1b3279afe25b4e65ee9ebbafc5e9e38a3b888b (patch)
tree51579f1d739bf62f155f7d7ef227ebb796dd82a3 /includes/RtsAPI.h
parent444006bcc30b9fd0db3d2f9430eb21b4f98ba74f (diff)
downloadhaskell-7b1b3279afe25b4e65ee9ebbafc5e9e38a3b888b.tar.gz
make exit() overridable, for use in DLLs
See #753
Diffstat (limited to 'includes/RtsAPI.h')
-rw-r--r--includes/RtsAPI.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/RtsAPI.h b/includes/RtsAPI.h
index a3a41f025f..7d28328080 100644
--- a/includes/RtsAPI.h
+++ b/includes/RtsAPI.h
@@ -43,6 +43,8 @@ extern void shutdownHaskellAndExit ( int exitCode );
extern void getProgArgv ( int *argc, char **argv[] );
extern void setProgArgv ( int argc, char *argv[] );
+/* exit() override */
+extern void (*exitFn)(int);
/* ----------------------------------------------------------------------------
Locking.