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

Method lua_value

include/sol/lua_value.hpp:67–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66 template <typename T, meta::disable<is_reference_or_lua_value_init_list<meta::unqualified_t<T>>> = meta::enabler>
67 lua_value(lua_State* L_, T&& value) : lua_value(((set_lua_state(L_)), std::forward<T>(value))) {
68 }
69
70 template <typename T, meta::disable<is_lua_value_single_constructible<meta::unqualified_t<T>>> = meta::enabler>
71 lua_value(T&& value) : ref_value(make_reference(thread_local_lua_state(), std::forward<T>(value))) {

Callers

nothing calls this directly

Calls 2

make_referenceFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected