1 /* -----------------------------------------------------------------------------
2 * $Id: RtsDllMain.c,v 1.3 2001/08/14 13:40:09 sewardj Exp $
4 * (c) The GHC Team 1999-2000
6 * Entry point for RTS-in-a-DLL
8 * ---------------------------------------------------------------------------*/
10 #include "PosixSource.h"
18 /* I'd be mildly surprised if this wasn't defined, but still. */
19 #ifdef ENABLE_WIN32_DLL_SUPPORT
23 DllMain ( HINSTANCE hInstance
29 * Note: the DllMain() doesn't call startupHaskell() for you,
30 * that is the task of users of the RTS. The reason is
31 * that *you* want to be able to control the arguments
32 * you pass to the RTS.
35 case DLL_PROCESS_DETACH: shutdownHaskell();
40 #endif /* ENABLE_WIN32_DLL_SUPPORT */