| 77 | |
| 78 | |
| 79 | static Table *getcurrenv (lua_State *L) { |
| 80 | if (L->ci == L->base_ci) /* no enclosing function? */ |
| 81 | return hvalue(gt(L)); /* use global table as environment */ |
| 82 | else { |
| 83 | Closure *func = curr_func(L); |
| 84 | return func->c.env; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | |
| 89 | void luaA_pushobject (lua_State *L, const TValue *o) { |
no outgoing calls
no test coverage detected