| 125 | |
| 126 | |
| 127 | LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { |
| 128 | CallInfo *ci = L->base_ci + ar->i_ci; |
| 129 | const char *name = findlocal(L, ci, n); |
| 130 | lua_lock(L); |
| 131 | if (name) |
| 132 | luaA_pushobject(L, ci->base + (n - 1)); |
| 133 | lua_unlock(L); |
| 134 | return name; |
| 135 | } |
| 136 | |
| 137 | |
| 138 | LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { |
no test coverage detected