Closed theanimatorspal closed 6 months ago
Look at the example here https://sol2.readthedocs.io/en/latest/exceptions.html#various-sol-and-lua-handlers
You need to change at least if (not infunc.valid()) {
to if (!result.valid()) {
That was too foolish of me, Thank you.
I am using Sol3, and have the following structure in my lua Program
It is similar to Love2D, however the error messages are not being even printed, suppose I call a non existing function in load(), that will be called later by the executable, it lets it happen.
This is what I have for handling in C++, l is sol::state.