diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-05-30 15:20:41 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-05-30 15:20:41 +0100 |
| commit | 25c84643b6c4da169cdb11de54f027e3c477c301 (patch) | |
| tree | ae25e8618ebcf421c0e711fd51807e32dd366041 /py/emit.h | |
| parent | 8827682b35f6fefb4604f28447b77e8443cbf1cb (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |
