| 1220 | |
| 1221 | |
| 1222 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 1223 | const char *name; |
| 1224 | TValue *val = NULL; /* to avoid warnings */ |
| 1225 | lua_lock(L); |
| 1226 | name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL, NULL); |
| 1227 | if (name) { |
| 1228 | setobj2s(L, L->top, val); |
| 1229 | api_incr_top(L); |
| 1230 | } |
| 1231 | lua_unlock(L); |
| 1232 | return name; |
| 1233 | } |
| 1234 | |
| 1235 | |
| 1236 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected