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