const HX_CHAR *hxRunLibrary() { std_register_prims(); regexp_register_prims(); zlib_register_prims(); try { __hxcpp_lib_main(); return 0; } catch ( Dynamic d ) { sgResultBuffer = d->toString().__s; return sgResultBuffer.c_str(); } }
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(); } }