MCPcopy Create free account
hub / github.com/ThePhD/sol2 / push_userdata

Function push_userdata

include/sol/stack_core.hpp:902–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

make_reference_userdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected