| 383 | } |
| 384 | |
| 385 | int push(lua_State* L_) const noexcept { |
| 386 | #if SOL_IS_ON(SOL_SAFE_STACK_CHECK) |
| 387 | luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value"); |
| 388 | #endif // make sure stack doesn't overflow |
| 389 | lua_rawgeti(L_, LUA_REGISTRYINDEX, ref); |
| 390 | return 1; |
| 391 | } |
| 392 | |
| 393 | void pop(lua_State* L_, int n = 1) const noexcept { |
| 394 | lua_pop(L_, n); |
nothing calls this directly
no test coverage detected