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

Function LuaInit

engine/liveupdate/src/script_liveupdate.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202#undef SETCONSTANT
203
204 static void LuaInit(lua_State* L)
205 {
206 int top = lua_gettop(L);
207 luaL_register(L, "liveupdate", Module_methods);
208 SetConstants(L);
209 lua_pop(L, 1);
210 assert(top == lua_gettop(L));
211 }
212
213
214 void ScriptInit(lua_State* L, dmResource::HFactory factory)

Callers 1

ScriptInitFunction · 0.70

Calls 3

lua_gettopFunction · 0.85
SetConstantsFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected