It would be handy to have the ability to use a custom entrypoint, particularly on Windows.
For applications on Windows there are a few different entrypoints:
int __stdcall WinMain(HINSTANCE, HINSTANCE, PSTR, int) // Graphical ASCII entrypoint
int __stdcall wWinMain(HINSTANCE, HINSTANCE, PWSTR, int) // Graphical UTF-16 entrypoint
int __stdcall DllMain(HINSTANCE, DWORD, LPVOID) // DLL entrypoint
Which entrypoint is invoked depends on the /SUBSYSTEM specified in the linker options.
Currently you can't add any of these because the generated int main() interferes with it.
(Also there's no @:callconv yet, but that's a different issue)
It would be handy to have the ability to use a custom entrypoint, particularly on Windows.
For applications on Windows there are a few different entrypoints:
Which entrypoint is invoked depends on the
/SUBSYSTEMspecified in the linker options.Currently you can't add any of these because the generated
int main()interferes with it.(Also there's no
@:callconvyet, but that's a different issue)