Files
lime/templates/cpp/static/Main.cpp
2014-08-15 13:16:19 -07:00

37 lines
683 B
C++

#include <stdio.h>
#ifdef HX_WINDOWS
#include <windows.h>
#endif
extern "C" const char *hxRunLibrary ();
extern "C" void hxcpp_set_top_of_stack ();
::foreach ndlls::::if (registerStatics)::
extern "C" int ::name::_register_prims ();::end::::end::
#ifdef HX_WINDOWS
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
#else
extern "C" int main(int argc, char *argv[]) {
#endif
hxcpp_set_top_of_stack ();
::foreach ndlls::::if (registerStatics)::
::name::_register_prims ();::end::::end::
const char *err = NULL;
err = hxRunLibrary ();
if (err) {
printf("Error: %s\n", err);
return -1;
}
return 0;
}