diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-01 20:08:18 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 20:08:18 +0000 |
commit | cbddb279bba5395ad444cb46d78223c8f9064c56 (patch) | |
tree | 773644ba542ebb307d036526cdae4f5086e65633 /py/emitnative.c | |
parent | a908202d60e15d37b47fb32b414658237119cd60 (diff) |
py: Implement break/continue from an exception with finally.
Still todo: break/continue from within the finally block itself.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index 1e5ea1fa9..9e8ae1a99 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -931,10 +931,10 @@ static void emit_native_setup_loop(emit_t *emit, int label) { emit_post(emit); } -static void emit_native_break_loop(emit_t *emit, int label) { +static void emit_native_break_loop(emit_t *emit, int label, int except_depth) { emit_native_jump(emit, label); // TODO properly } -static void emit_native_continue_loop(emit_t *emit, int label) { +static void emit_native_continue_loop(emit_t *emit, int label, int except_depth) { assert(0); } static void emit_native_setup_with(emit_t *emit, int label) { |