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

Function ScriptInstanceIsValid

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

Source from the content-addressed store, hash-verified

762}
763
764static int ScriptInstanceIsValid(lua_State* L)
765{
766 ScriptInstance* i = (ScriptInstance*)lua_touserdata(L, 1);
767 lua_pushboolean(L, i != 0x0 && i->m_ContextTableReference != LUA_NOREF);
768 return 1;
769}
770
771static int ScriptScriptGetUniqueScriptId(lua_State* L)
772{

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected