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

Function DeleteScriptInstance

engine/script/src/test/test_script_timer.cpp:805–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805static void DeleteScriptInstance(lua_State* L)
806{
807 ScriptInstance* i = (ScriptInstance *)lua_touserdata(L, -1);
808 dmScript::Unref(L, LUA_REGISTRYINDEX, i->m_InstanceReference);
809 dmScript::Unref(L, LUA_REGISTRYINDEX, i->m_ContextTableReference);
810}
811
812TEST_F(ScriptTimerTest, TestLuaOneshot)
813{

Callers 1

TEST_FFunction · 0.70

Calls 2

lua_touserdataFunction · 0.85
UnrefFunction · 0.85

Tested by

no test coverage detected