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

Function get_environment

extlibs/sol3/include/sol/sol.hpp:23786–23790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23784
23785 template <typename E = reference, typename T>
23786 basic_environment<E> get_environment(const T& target) {
23787 lua_State* L = target.lua_state();
23788 auto pp = stack::pop_n(L, stack::push_environment_of(target));
23789 return basic_environment<E>(L, -1);
23790 }
23791
23792 struct this_environment {
23793 optional<environment> env;

Callers 1

getMethod · 0.85

Calls 3

pop_nFunction · 0.85
push_environment_ofFunction · 0.85
lua_stateMethod · 0.45

Tested by

no test coverage detected