| 2904 | |
| 2905 | |
| 2906 | LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) { |
| 2907 | const char *name; |
| 2908 | TValue *val; |
| 2909 | lua_lock(L); |
| 2910 | name = aux_upvalue(index2adr(L, funcindex), n, &val); |
| 2911 | if (name) { |
| 2912 | setobj2s(L, L->top, val); |
| 2913 | api_incr_top(L); |
| 2914 | } |
| 2915 | lua_unlock(L); |
| 2916 | return name; |
| 2917 | } |
| 2918 | |
| 2919 | |
| 2920 | LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) { |
no test coverage detected