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

Function TestGetContextTableRef

engine/script/src/test/test_script_lua.cpp:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static int TestGetContextTableRef(lua_State* L)
250{
251 const int self_index = 1;
252
253 int top = lua_gettop(L);
254
255 TestDummy* i = (TestDummy*)lua_touserdata(L, self_index);
256 lua_pushnumber(L, i ? i->m_ContextTableReference : LUA_NOREF);
257
258 assert(top + 1 == lua_gettop(L));
259
260 return 1;
261}
262
263static int TestScriptGetUniqueScriptId(lua_State* L)
264{

Callers

nothing calls this directly

Calls 4

lua_gettopFunction · 0.85
lua_touserdataFunction · 0.85
lua_pushnumberFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected