| 1337 | |
| 1338 | |
| 1339 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 1340 | const char *name; |
| 1341 | TValue *val = NULL; /* to avoid warnings */ |
| 1342 | lua_lock(L); |
| 1343 | name = aux_upvalue(index2value(L, funcindex), n, &val, NULL); |
| 1344 | if (name) { |
| 1345 | setobj2s(L, L->top, val); |
| 1346 | api_incr_top(L); |
| 1347 | } |
| 1348 | lua_unlock(L); |
| 1349 | return name; |
| 1350 | } |
| 1351 | |
| 1352 | |
| 1353 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected