MCPcopy Create free account
hub / github.com/InoriRus/Kyty / RunString

Function RunString

source/lib/Scripts/src/Scripts.cpp:213–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213ScriptError RunString(const String& source)
214{
215 lua_init();
216 // EXIT_IF(lua_gettop(g_lua_state) > 0);
217
218 ScriptError status = LoadString(source);
219
220 if (status != ScriptError::Ok)
221 {
222 return status;
223 }
224
225 status = Run();
226
227 return status;
228}
229
230void RegisterSystemFunc(const char* name, script_func_t func)
231{

Callers 5

run_scriptFunction · 0.85
FORFunction · 0.85
KYTY_SUBSYSTEM_INITFunction · 0.85
UnregisterFuncFunction · 0.85
KYTY_STATIC_SCRIPT_FUNCFunction · 0.85

Calls 3

lua_initFunction · 0.85
RunFunction · 0.85
LoadStringFunction · 0.70

Tested by

no test coverage detected