| 1055 | |
| 1056 | |
| 1057 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 1058 | const char *name; |
| 1059 | TValue *val; |
| 1060 | lua_lock(L); |
| 1061 | name = aux_upvalue(index2adr(L, funcindex), n, &val); |
| 1062 | if (name) { |
| 1063 | setobj2s(L, L->top, val); |
| 1064 | api_incr_top(L); |
| 1065 | } |
| 1066 | lua_unlock(L); |
| 1067 | return name; |
| 1068 | } |
| 1069 | |
| 1070 | |
| 1071 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected