This commit is contained in:
Dante
2026-05-22 11:54:15 -07:00
parent 05f197c291
commit b47ea35fe4
935 changed files with 1016163 additions and 1 deletions

View File

@ -0,0 +1,38 @@
/*
Use the "hxRunLibrary" code to run the static version of the code
*/
#include <hxcpp.h>
#include <string>
extern "C"
{
void __hxcpp_lib_main();
int std_register_prims();
int regexp_register_prims();
int zlib_register_prims();
std::string sgResultBuffer;
HXCPP_EXTERN_CLASS_ATTRIBUTES const HX_CHAR *hxRunLibrary()
{
#if (HXCPP_API_LEVEL<330)
std_register_prims();
regexp_register_prims();
//zlib_register_prims();
#endif
try {
__hxcpp_lib_main();
return 0;
}
catch ( Dynamic d ) {
sgResultBuffer = d->toString().__s;
return sgResultBuffer.c_str();
}
}
}