sol2
sol2 copied to clipboard
SOL_EXCEPTIONS_SAFE_PROPAGATION changes behaviour of nil arguments
sol::state lua;
lua.set_function("f", [](sol::object) {});
lua.script("f(1)"); // ok
lua.script("f(nil)"); // ok only if SOL_EXCEPTIONS_SAFE_PROPAGATION 0
I'm using PUC Lua 5.1 and sol commit 6409634.
Did you try just disabling the check inside sol? That is, commenting lines https://github.com/ThePhD/sol2/blob/develop/include/sol/stack_check_get_qualified.hpp#L56-L62 and https://github.com/ThePhD/sol2/blob/develop/include/sol/stack_check_get_unqualified.hpp#L59-L65 ?