aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:29:15 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-09-05 15:29:15 -0300
commitffbcadfb4197213d55222bca3ecc52606cd980f4 (patch)
treebc80bb66945033f0b2eb88981ef977d809893d52 /lopcodes.c
parent0b73ed8f083c99b5ff88e0822532db7ad8785881 (diff)
downloadlua-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 'lopcodes.c')
0 files changed, 0 insertions, 0 deletions