| 8621 | } |
| 8622 | |
| 8623 | stateless_reference(lua_State* L, detail::global_tag) noexcept { |
| 8624 | #if defined(SOL_SAFE_STACK_CHECK) && SOL_SAFE_STACK_CHECK |
| 8625 | luaL_checkstack(L, 1, "not enough Lua stack space to push this reference value"); |
| 8626 | #endif // make sure stack doesn't overflow |
| 8627 | lua_pushglobaltable(L); |
| 8628 | ref = luaL_ref(L, LUA_REGISTRYINDEX); |
| 8629 | } |
| 8630 | |
| 8631 | stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) { |
| 8632 | } |
nothing calls this directly
no test coverage detected