MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / hxRunLibrary

Function hxRunLibrary

src/hx/RunLibs.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::string sgResultBuffer;
14
15HXCPP_EXTERN_CLASS_ATTRIBUTES const HX_CHAR *hxRunLibrary()
16{
17 try {
18 __hxcpp_lib_main();
19 return 0;
20 }
21 catch ( Dynamic d ) {
22 sgResultBuffer = d->toString().__s;
23 return sgResultBuffer.c_str();
24 }
25}
26
27
28

Callers 1

mainFunction · 0.85

Calls 2

c_strMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected