#include <sol.hpp>
§ get()
20753 int pre_stack_size = lua_gettop(L);
20754 if (lua_getstack(L, 1, &info) != 1) {
20755 if (lua_getstack(L, 0, &info) != 1) {
20756 lua_settop(L, pre_stack_size);
20757 return this_environment();
20760 if (lua_getinfo(L,
"f", &info) == 0) {
20761 lua_settop(L, pre_stack_size);
20762 return this_environment();
20765 stack_reference f(L, -1);
20767 if (!env.valid()) {
20768 lua_settop(L, pre_stack_size);
20769 return this_environment();
20771 return this_environment(std::move(env));
const env_t env_key
Definition: sol.hpp:4703
basic_environment< reference > environment
Definition: sol.hpp:299
The documentation for this struct was generated from the following file: