Add a Lime legacy path

This commit is contained in:
Joshua Granick
2014-09-13 02:22:28 -07:00
parent 09a0f30981
commit 4d12330694
130 changed files with 5779 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
/*
* Main.mm
*
* Boot code for lime.
*
*/
#include <stdio.h>
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::
extern "C" int main(int argc, char *argv[])
{
//printf("Starting ...\n" );
hxcpp_set_top_of_stack();
::foreach ndlls::
::if (registerStatics)::
::name::_register_prims();
::end::
::end::
//printf("Running\n");
const char *err = NULL;
err = hxRunLibrary();
if (err) {
printf(" Error %s\n", err );
return -1;
}
//printf("Done!\n");
return 0;
}