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

Function ScriptScriptGetUniqueScriptId

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

Source from the content-addressed store, hash-verified

769}
770
771static int ScriptScriptGetUniqueScriptId(lua_State* L)
772{
773 ScriptInstance* inst = (ScriptInstance*)lua_touserdata(L, 1);
774 lua_pushinteger(L, (lua_Integer)inst->m_UniqueScriptId);
775 return 1;
776}
777
778static const luaL_reg ScriptInstance_methods[] =
779{

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected