sol2/tests/regression_tests/source/1008.cpp
ThePhD af779f0bed
Improve the testing macros to work across platforms.
Add a note to the documentation about SOL_NO_LUA_HPP being less preferred over the C++ defines, to Fix #1013.
Add regression tests (not yet fixed) so I can get to the bottom of VC++ being ass.
2020-08-12 19:07:32 -04:00

14 lines
217 B
C++

#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>
int regression_1008() {
sol::state lua;
lua.create_named_table("t");
sol::table t = lua["t"];
t["f"] = sol::as_function([]() {});
return 0;
}