| 126 | |
| 127 | template <typename T> |
| 128 | bool is() const { |
| 129 | int r = ref_value.registry_index(); |
| 130 | if (r == LUA_REFNIL) |
| 131 | return meta::any_same<meta::unqualified_t<T>, lua_nil_t, nullopt_t, std::nullptr_t>::value ? true : false; |
| 132 | if (r == LUA_NOREF) |
| 133 | return false; |
| 134 | auto pp = stack::push_pop(ref_value); |
| 135 | return stack::check<T>(ref_value.lua_state(), -1, &no_panic); |
| 136 | } |
| 137 | }; |
| 138 | |
| 139 | using array_value = typename lua_value::arr; |
nothing calls this directly
no test coverage detected