| 900 | |
| 901 | template <typename T, typename... Args> |
| 902 | int push_userdata(lua_State* L, T&& t, Args&&... args) { |
| 903 | using U = meta::unqualified_t<T>; |
| 904 | using Tr = meta::conditional_t<std::is_pointer_v<U>, |
| 905 | detail::as_pointer_tag<std::remove_pointer_t<U>>, |
| 906 | meta::conditional_t<is_unique_usertype_v<U>, detail::as_unique_tag<U>, detail::as_value_tag<U>>>; |
| 907 | return stack::push<Tr>(L, std::forward<T>(t), std::forward<Args>(args)...); |
| 908 | } |
| 909 | |
| 910 | template <typename T, typename Arg, typename... Args> |
| 911 | int push_userdata(lua_State* L, Arg&& arg, Args&&... args) { |
no outgoing calls
no test coverage detected