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

Function ScriptIsValid

engine/gameobject/src/gameobject/gameobject_script.cpp:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 static int ScriptIsValid(lua_State* L)
210 {
211 Script* script = (Script*)lua_touserdata(L, 1);
212 lua_pushboolean(L, script != 0x0 && script->m_LuaModule != 0x0);
213 return 1;
214 }
215
216 static const luaL_reg Script_methods[] =
217 {

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
lua_pushbooleanFunction · 0.85

Tested by

no test coverage detected