summaryrefslogtreecommitdiff
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-30 15:20:41 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-30 15:20:41 +0100
commit25c84643b6c4da169cdb11de54f027e3c477c301 (patch)
treeae25e8618ebcf421c0e711fd51807e32dd366041 /py/emit.h
parent8827682b35f6fefb4604f28447b77e8443cbf1cb (diff)
py: Fix break from within a for loop.
Needed to pop the iterator object when breaking out of a for loop. Need also to be careful to unwind exception handler before popping iterator. Addresses issue #635.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/emit.h b/py/emit.h
index 5a3b27d83..874ec8819 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -44,6 +44,8 @@ typedef enum {
#define MP_EMIT_STAR_FLAG_SINGLE (0x01)
#define MP_EMIT_STAR_FLAG_DOUBLE (0x02)
+#define MP_EMIT_BREAK_FROM_FOR (0x8000)
+
typedef struct _emit_t emit_t;
typedef struct _emit_method_table_t {