| 70 | stateless_stack_reference& operator=(const stateless_stack_reference&) noexcept = default; |
| 71 | |
| 72 | int push(lua_State* L_) const noexcept { |
| 73 | #if SOL_IS_ON(SOL_SAFE_STACK_CHECK) |
| 74 | luaL_checkstack(L_, 1, "not enough Lua stack space to push a single reference value"); |
| 75 | #endif // make sure stack doesn't overflow |
| 76 | lua_pushvalue(L_, m_index); |
| 77 | return 1; |
| 78 | } |
| 79 | |
| 80 | void pop(lua_State* L_, int pop_count = 1) const noexcept { |
| 81 | lua_pop(L_, pop_count); |
nothing calls this directly
no test coverage detected