-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua throw: set panic function as main priority #6
base: ee-v5.4.4
Are you sure you want to change the base?
Conversation
Makes panic function trigger first (if programmer provided one) instead of testing first on `longjmp()` Wich has issues on PS2SDK lately
depends on ps2dev/lua#6 to be able to fix the issues with `longjmp()`
@israpps please take a look to check if this is still failing, if not close the PR |
made some tests and it seems to be fixed. |
thinking about this a bit, this feature is actually helpful, since the lua stack has more information when the panic function is called compared to the information obtained by checking it after the and since the panic feature has to be explicitly coded by the developer, we dont have to worry about it changing existing projects behavior |
But this is a “common behavior to all platforms ” if you think it still makes sense my recommendation is to create PR to original LUA repo |
The original purpose of the panic function (if I understood correctly) is to provide a "if everything else fails" error handler. Not sure they'll like it. |
So then I would be against apply this change, the more “mainstream” we are, the better |
Makes panic function trigger first (if programmer provided one) instead of testing first on
longjmp()
Wich has issues on PS2SDK lately.Impact on behaviour of already existing apps: Only if they already use a panic func.
Example of panic function (adapted to enceladus and tweaked to avoid the longjmp crash)