diff options
author | Dimitrios Vytiniotis <dimitris@microsoft.com> | 2011-11-16 15:28:43 +0000 |
---|---|---|
committer | Dimitrios Vytiniotis <dimitris@microsoft.com> | 2011-11-16 15:28:43 +0000 |
commit | 7ec5404a3fd277251a1ab353aa398adfc02b6d34 (patch) | |
tree | 78ff33800fad55d7dbb4e1b1732d4f82c4e092a2 /includes/rts/Main.h | |
parent | db892577a2effc2266533e355dad2c40f9fd3be1 (diff) | |
parent | 1bbb89f3ab009367fcca84b73b351ddcf5be16a4 (diff) | |
download | haskell-ghc-constraint-solver.tar.gz |
Merge branch 'master' of http://darcs.haskell.org/ghc into ghc-constraint-solverghc-constraint-solver
Diffstat (limited to 'includes/rts/Main.h')
-rw-r--r-- | includes/rts/Main.h | 21 |
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 */ |