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

Function LuaLoad

engine/script/src/script_module.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 int LuaLoad(lua_State *L, dmLuaDDF::LuaSource *source)
59 {
60 const char *buf;
61 uint32_t size;
62 GetLuaSource(source, &buf, &size);
63 return luaL_loadbuffer(L, buf, size, source->m_Filename);
64 }
65
66 static bool LuaLoadModule(lua_State *L, const char *buf, uint32_t size, const char *filename)
67 {

Callers 3

LoadDebugInitScriptsFunction · 0.50
DispatchFunction · 0.50
LoadRenderScriptFunction · 0.50

Calls 2

GetLuaSourceFunction · 0.85
luaL_loadbufferFunction · 0.85

Tested by

no test coverage detected