![]() | Fun 0.41.5 The programming language that makes You have fun |
Implements the OP_TRY_PUSH opcode to begin a try/catch region. More...

Go to the source code of this file.
Functions | |
| exit (1) | |
Variables | |
| case | OP_TRY_PUSH |
| case Runtime | error |
| f | try_stack [++f->try_sp] = f->ip - 1 |
| break | |
Implements the OP_TRY_PUSH opcode to begin a try/catch region.
This file handles the OP_TRY_PUSH instruction, which marks the start of a try/catch region in the current frame by pushing the index of the TRY instruction onto a small per-frame stack. The actual catch target IP is stored in the TRY instruction's operand and may be patched later by the compiler/linker.
Behavior:
Errors:
Definition in file try_push.c.
| exit | ( | 1 | ) |
| break |
Definition at line 36 of file try_push.c.
| case Runtime error |
Definition at line 32 of file try_push.c.
| case OP_TRY_PUSH |
Definition at line 29 of file try_push.c.
Definition at line 35 of file try_push.c.