| 10194 | } |
| 10195 | |
| 10196 | stateless_reference(lua_State* L_, global_tag_t) noexcept { |
| 10197 | #if SOL_IS_ON(SOL_SAFE_STACK_CHECK) |
| 10198 | luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value"); |
| 10199 | #endif // make sure stack doesn't overflow |
| 10200 | lua_pushglobaltable(L_); |
| 10201 | ref = luaL_ref(L_, LUA_REGISTRYINDEX); |
| 10202 | } |
| 10203 | |
| 10204 | stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) { |
| 10205 | } |
nothing calls this directly
no test coverage detected