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