| 6777 | |
| 6778 | protected: |
| 6779 | basic_reference(lua_State* L, detail::global_tag) noexcept |
| 6780 | : luastate(detail::pick_main_thread<main_only>(L, L)) { |
| 6781 | lua_pushglobaltable(lua_state()); |
| 6782 | ref = luaL_ref(lua_state(), LUA_REGISTRYINDEX); |
| 6783 | } |
| 6784 | |
| 6785 | int stack_index() const noexcept { |
| 6786 | return -1; |