summaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-02-01 20:08:18 +0000
committerDamien George <damien.p.george@gmail.com>2014-02-01 20:08:18 +0000
commitcbddb279bba5395ad444cb46d78223c8f9064c56 (patch)
tree773644ba542ebb307d036526cdae4f5086e65633 /py/emit.h
parenta908202d60e15d37b47fb32b414658237119cd60 (diff)
py: Implement break/continue from an exception with finally.
Still todo: break/continue from within the finally block itself.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emit.h b/py/emit.h
index ff33a8f6d..062b38ef9 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -72,8 +72,8 @@ typedef struct _emit_method_table_t {
void (*jump_if_true_or_pop)(emit_t *emit, int label);
void (*jump_if_false_or_pop)(emit_t *emit, int label);
void (*setup_loop)(emit_t *emit, int label);
- void (*break_loop)(emit_t *emit, int label);
- void (*continue_loop)(emit_t *emit, int label);
+ void (*break_loop)(emit_t *emit, int label, int except_depth);
+ void (*continue_loop)(emit_t *emit, int label, int except_depth);
void (*setup_with)(emit_t *emit, int label);
void (*with_cleanup)(emit_t *emit);
void (*setup_except)(emit_t *emit, int label);