mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Catch EVERYTHING, even the shit we don't know about.
This commit is contained in:
parent
e06b939d73
commit
22f74a31a2
|
@ -123,7 +123,9 @@ private:
|
||||||
return protected_function_result(lua_state(), firstreturn, 0, 1, call_status::runtime);
|
return protected_function_result(lua_state(), firstreturn, 0, 1, call_status::runtime);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
throw;
|
onexcept("caught (...) unknown error during protected_function call");
|
||||||
|
firstreturn = lua_gettop(lua_state());
|
||||||
|
return protected_function_result(lua_state(), firstreturn, 0, 1, call_status::runtime);
|
||||||
}
|
}
|
||||||
#endif // No Exceptions
|
#endif // No Exceptions
|
||||||
return protected_function_result(lua_state(), firstreturn + ( handlerpushed ? 0 : 1 ), returncount, returncount, code);
|
return protected_function_result(lua_state(), firstreturn + ( handlerpushed ? 0 : 1 ), returncount, returncount, code);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user