MCPcopy Create free account
hub / github.com/defold/defold / RunString

Function RunString

engine/script/src/test/test_script.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38bool RunString(lua_State* L, const char* script)
39{
40 if (luaL_dostring(L, script) != 0)
41 {
42 dmLogError("%s", lua_tolstring(L, -1, 0));
43 return false;
44 }
45 return true;
46}
47
48static ScriptTest* s_LogListenerContext = 0;
49

Callers 9

RunStringMethod · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.50

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected