MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / push_reference

Function push_reference

Libs/sol/sol.hpp:10716–10723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10714
10715 template <typename T, typename Arg, typename... Args>
10716 int push_reference(lua_State* L, Arg&& arg, Args&&... args) {
10717 using use_reference_tag = meta::all<std::is_lvalue_reference<T>,
10718 meta::neg<std::is_const<std::remove_reference_t<T>>>,
10719 meta::neg<is_lua_primitive<meta::unqualified_t<T>>>,
10720 meta::neg<is_unique_usertype<meta::unqualified_t<T>>>>;
10721 using Tr = meta::conditional_t<use_reference_tag::value, detail::as_reference_tag, meta::unqualified_t<T>>;
10722 return stack::push<Tr>(L, std::forward<Arg>(arg), std::forward<Args>(args)...);
10723 }
10724
10725 } // namespace stack_detail
10726

Callers 7

multi_push_referenceFunction · 0.85
call_into_luaFunction · 0.85
callMethod · 0.85
call_wrapper_variableFunction · 0.85
next_associativeMethod · 0.85
next_iterMethod · 0.85
getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected