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

Function __scriptable_load_cppia

src/hx/cppia/CppiaModule.cpp:645–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645void __scriptable_load_cppia(String inCode)
646{
647 const unsigned char *code = (const unsigned char *)inCode.raw_ptr();
648 int length = inCode.length;
649 #ifdef HX_SMART_STRINGS
650 if (inCode.isUTF16Encoded())
651 {
652 code = (const unsigned char *)inCode.utf8_str();
653 length = strlen( (const char *)code );
654 }
655 #endif
656
657 ::hx::CppiaLoadedModule module = hx::LoadCppia(code,length);
658
659 module->boot();
660 module->run();
661}
662

Callers

nothing calls this directly

Calls 4

LoadCppiaFunction · 0.85
utf8_strMethod · 0.80
bootMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected