this_environment
This release includes some fixes for LuaJIT's beta. Please use LuaJIT-beta3, and not LuaJIT-beta2, as it is redefining some functions present in the compatibility wrapper but does not include its semantic versioning scheme in any of its macros in a usable format.
This also fixes a bug in VS2013 CTP+ that does not perform qualified name lookup properly, even with a template alias.
Finally, this_environment
-- a convenience transparent function -- is now in sol2. Note that it does not work too terribly well when combined with someone calling a Lua function directly from C++ using std::function
, sol::function
, or similar. But, it will capture the environment of a script or function in a script calling your code fairly effectively.
Docs: http://sol2.readthedocs.io/en/latest/api/this_environment.html
Have fun!