/* Use the "hxRunLibrary" code to run the static version of the code */ #include #include 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(); } } }