1c332fc95cff9c60114ae30ce46a72497f582dd7
[ghc.git] / includes / rts / Main.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2009
4 *
5 * Entry point for standalone Haskell programs.
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #ifndef RTSMAIN_H
10 #define RTSMAIN_H
11
12 /* -----------------------------------------------------------------------------
13 * The entry point for Haskell programs that use a Haskell main function
14 * -------------------------------------------------------------------------- */
15
16 int hs_main (int argc, char *argv[], // program args
17 StgClosure *main_closure, // closure for Main.main
18 RtsConfig rts_config) // RTS configuration
19 GNUC3_ATTRIBUTE(__noreturn__);
20
21 #endif /* RTSMAIN_H */