| 289 | } |
| 290 | |
| 291 | stateless_reference(lua_State* L_, global_tag_t) noexcept { |
| 292 | #if SOL_IS_ON(SOL_SAFE_STACK_CHECK) |
| 293 | luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value"); |
| 294 | #endif // make sure stack doesn't overflow |
| 295 | lua_pushglobaltable(L_); |
| 296 | ref = luaL_ref(L_, LUA_REGISTRYINDEX); |
| 297 | } |
| 298 | |
| 299 | stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) { |
| 300 | } |
nothing calls this directly
no test coverage detected