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

Function RenderScriptInstance_newindex

engine/render/src/render/render_script.cpp:535–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 }
534
535 static int RenderScriptInstance_newindex(lua_State *L)
536 {
537 int top = lua_gettop(L);
538 (void) top;
539
540 RenderScriptInstance* i = RenderScriptInstance_Check(L, 1);
541 assert(i);
542
543 lua_rawgeti(L, LUA_REGISTRYINDEX, i->m_RenderScriptDataReference);
544 lua_pushvalue(L, 2);
545 lua_pushvalue(L, 3);
546 lua_settable(L, -3);
547 lua_pop(L, 1);
548
549 assert(top == lua_gettop(L));
550
551 return 0;
552 }
553
554 static int RenderScriptInstanceGetURL(lua_State* L)
555 {

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
lua_rawgetiFunction · 0.85
lua_pushvalueFunction · 0.85
lua_settableFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected