| 9189 | } |
| 9190 | |
| 9191 | stateless_reference(lua_State* L, detail::global_tag) noexcept { |
| 9192 | #if SOL_IS_ON(SOL_SAFE_STACK_CHECK_I_) |
| 9193 | luaL_checkstack(L, 1, "not enough Lua stack space to push this reference value"); |
| 9194 | #endif // make sure stack doesn't overflow |
| 9195 | lua_pushglobaltable(L); |
| 9196 | ref = luaL_ref(L, LUA_REGISTRYINDEX); |
| 9197 | } |
| 9198 | |
| 9199 | stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) { |
| 9200 | } |
nothing calls this directly
no test coverage detected