---------------------------------------------------------------------------*/ Tinker Class Helper */ ---------------------------------------------------------------------------*/
| 625 | /* Tinker Class Helper */ |
| 626 | /*---------------------------------------------------------------------------*/ |
| 627 | static 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 | /*---------------------------------------------------------------------------*/ |
no test coverage detected