| 1062 | |
| 1063 | |
| 1064 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 1065 | const char *name; |
| 1066 | TValue *val; |
| 1067 | lua_lock(L); |
| 1068 | name = aux_upvalue(index2adr(L, funcindex), n, &val); |
| 1069 | if (name) { |
| 1070 | setobj2s(L, L->top, val); |
| 1071 | api_incr_top(L); |
| 1072 | } |
| 1073 | lua_unlock(L); |
| 1074 | return name; |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected