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

Function push_reference

extlibs/sol3/include/sol/sol.hpp:10147–10154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10145
10146 template <typename T, typename Arg, typename... Args>
10147 int push_reference(lua_State* L, Arg&& arg, Args&&... args) {
10148 using use_reference_tag = meta::all<std::is_lvalue_reference<T>,
10149 meta::neg<std::is_const<T>>,
10150 meta::neg<is_lua_primitive<meta::unqualified_t<T>>>,
10151 meta::neg<is_unique_usertype<meta::unqualified_t<T>>>>;
10152 using Tr = meta::conditional_t<use_reference_tag::value, detail::as_reference_tag, meta::unqualified_t<T>>;
10153 return stack::push<Tr>(L, std::forward<Arg>(arg), std::forward<Args>(args)...);
10154 }
10155
10156 } // namespace stack_detail
10157

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