| 1062 | } |
| 1063 | |
| 1064 | static int getref (lua_State *L) { |
| 1065 | int level = lua_gettop(L); |
| 1066 | lua_rawgeti(L, LUA_REGISTRYINDEX, luaL_checkinteger(L, 1)); |
| 1067 | cast_void(level); /* to avoid warnings */ |
| 1068 | lua_assert(lua_gettop(L) == level+1); |
| 1069 | return 1; |
| 1070 | } |
| 1071 | |
| 1072 | static int unref (lua_State *L) { |
| 1073 | int level = lua_gettop(L); |
nothing calls this directly
no test coverage detected