sol2/tests/regression_tests/simple/source/1008.cpp

15 lines
219 B
C++
Raw Normal View History

#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;
2020-08-13 22:42:37 +08:00
}