You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get robust error handling in place with code that may be in a callback from LuaBridge or may not. Is there any way to tell if LuaBridge called my code? That is, if LuaBridge is somewhere higher on the stack? Conceptually I would like to do this:
voiderror_handler(luabridge::LuaException &e)
{
if (<called-by-LuaBridge>)
throw e; // let LuaBridge and Lua error-handling handle itdisplay_message_to_user(e.what());
lua_close(e.state());
}
The text was updated successfully, but these errors were encountered:
I am trying to get robust error handling in place with code that may be in a callback from LuaBridge or may not. Is there any way to tell if LuaBridge called my code? That is, if LuaBridge is somewhere higher on the stack? Conceptually I would like to do this:
The text was updated successfully, but these errors were encountered: