| 1211 | |
| 1212 | |
| 1213 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 1214 | const char *name; |
| 1215 | TValue *val = NULL; /* to avoid warnings */ |
| 1216 | lua_lock(L); |
| 1217 | name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL); |
| 1218 | if (name) { |
| 1219 | setobj2s(L, L->top, val); |
| 1220 | api_incr_top(L); |
| 1221 | } |
| 1222 | lua_unlock(L); |
| 1223 | return name; |
| 1224 | } |
| 1225 | |
| 1226 | |
| 1227 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected