]> gitweb.factorcode.org Git - factor.git/blob - vm/main-windows.cpp
Squashed commit of the following:
[factor.git] / vm / main-windows.cpp
1 #include "master.hpp"
2
3 VM_C_API int wmain(int argc, wchar_t **argv)
4 {
5         factor::init_globals();
6         factor::start_standalone_factor(argc,argv);
7         return 0;
8 }
9
10 int WINAPI WinMain(
11         HINSTANCE hInstance,
12         HINSTANCE hPrevInstance,
13         LPSTR lpCmdLine,
14         int nCmdShow)
15 {
16         int argc;
17         wchar_t **argv = CommandLineToArgvW(GetCommandLine(),&argc);
18         wmain(argc,argv);
19
20         return 0;
21 }