MCPcopy Create free account
hub / github.com/SOUI2/soui / invoke_parent

Function invoke_parent

components/ScriptModule-LUA/lua_tinker/lua_tinker.cpp:627–646  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/ Tinker Class Helper */ ---------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

625/* Tinker Class Helper */
626/*---------------------------------------------------------------------------*/
627static void invoke_parent(lua_State *L)
628{
629 lua_pushstring(L, "__parent");
630 lua_rawget(L, -2);
631 if(lua_istable(L,-1))
632 {
633 lua_pushvalue(L,2);
634 lua_rawget(L, -2);
635 if(!lua_isnil(L,-1))
636 {
637 lua_remove(L,-2);
638 }
639 else
640 {
641 lua_remove(L, -1);
642 invoke_parent(L);
643 lua_remove(L,-2);
644 }
645 }
646}
647
648
649/*---------------------------------------------------------------------------*/

Callers 2

meta_getMethod · 0.85
meta_setMethod · 0.85

Calls 4

lua_pushstringFunction · 0.85
lua_rawgetFunction · 0.85
lua_pushvalueFunction · 0.85
lua_removeFunction · 0.85

Tested by

no test coverage detected