summaryrefslogtreecommitdiff
path: root/includes/rts
diff options
context:
space:
mode:
Diffstat (limited to 'includes/rts')
-rw-r--r--includes/rts/Main.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/includes/rts/Main.h b/includes/rts/Main.h
new file mode 100644
index 0000000000..1c332fc95c
--- /dev/null
+++ b/includes/rts/Main.h
@@ -0,0 +1,21 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2009
+ *
+ * Entry point for standalone Haskell programs.
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef RTSMAIN_H
+#define RTSMAIN_H
+
+/* -----------------------------------------------------------------------------
+ * The entry point for Haskell programs that use a Haskell main function
+ * -------------------------------------------------------------------------- */
+
+int hs_main (int argc, char *argv[], // program args
+ StgClosure *main_closure, // closure for Main.main
+ RtsConfig rts_config) // RTS configuration
+ GNUC3_ATTRIBUTE(__noreturn__);
+
+#endif /* RTSMAIN_H */