diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-09-05 15:29:15 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-09-05 15:29:15 -0300 |
| commit | ffbcadfb4197213d55222bca3ecc52606cd980f4 (patch) | |
| tree | bc80bb66945033f0b2eb88981ef977d809893d52 /lapi.c | |
| parent | 0b73ed8f083c99b5ff88e0822532db7ad8785881 (diff) | |
| download | lua-ffbcadfb4197213d55222bca3ecc52606cd980f4.tar.gz lua-ffbcadfb4197213d55222bca3ecc52606cd980f4.tar.bz2 lua-ffbcadfb4197213d55222bca3ecc52606cd980f4.zip | |
In C++, 'throw' must go to the correct handler.
In C, we may have several "setjmp" nested, and the "longjmp" will go
to the one given by the corresponding "jmp_buf". In C++, a "throw"
will always go to the inner "catch". So, the "catch" must check
whether it is the recipient of the "throw" and, if not, rethrow
the exception to the outer level.
Diffstat (limited to 'lapi.c')
0 files changed, 0 insertions, 0 deletions
