| 18573 | basic_protected_function() = default; |
| 18574 | template <typename T, meta::enable<meta::neg<std::is_same<meta::unqualified_t<T>, basic_protected_function>>, meta::neg<std::is_base_of<proxy_base_tag, meta::unqualified_t<T>>>, meta::neg<std::is_same<base_t, stack_reference>>, meta::neg<std::is_same<lua_nil_t, meta::unqualified_t<T>>>, is_lua_reference<meta::unqualified_t<T>>> = meta::enabler> |
| 18575 | basic_protected_function(T&& r) noexcept |
| 18576 | : base_t(std::forward<T>(r)), error_handler(get_default_handler(r.lua_state())) { |
| 18577 | #if defined(SOL_SAFE_REFERENCES) && SOL_SAFE_REFERENCES |
| 18578 | if (!is_function<meta::unqualified_t<T>>::value) { |
| 18579 | auto pp = stack::push_pop(*this); |
| 18580 | constructor_handler handler{}; |
| 18581 | stack::check<basic_protected_function>(lua_state(), -1, handler); |
| 18582 | } |
| 18583 | #endif // Safety |
| 18584 | } |
| 18585 | basic_protected_function(const basic_protected_function&) = default; |
| 18586 | basic_protected_function& operator=(const basic_protected_function&) = default; |
| 18587 | basic_protected_function(basic_protected_function&&) = default; |
no test coverage detected