exceptions
exceptions copied to clipboard
Exceptions for Pawn (SA-MP).
Throwing an error inside a public function invoked by `CallLocalFunction` doesn't work. I suspect it's because the public function should be returning outside of the AMX, which it never does...
This doesn't work unless the try statement is within a function call. Will require a bit of refactoring. Probably won't happen unless increased demand.
[crashdetect](https://github.com/Zeex/samp-plugin-crashdetect) can report runtime errors to a public function - hook this function and use it to throw exceptions. One of the problems with doing this is the outer public...
Throwing an exception in `catch` will cause it to skip `finally`, which it shouldn't. Throwing an exception in `finally` doesn't pop the context, which it should.
# Things to test - [x] Nesting - [x] Recursive nesting - [x] Stack and heap integrity - [ ] Huge gamemodes - [ ] YSI - [x] `CallLocalFunction` and...
Placing finally before catch and similar. Just display an error and exit.