diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-20 18:02:27 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-20 18:02:27 +0100 |
commit | 5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e (patch) | |
tree | f8dc88109db6b46e531990df74fbb4d99254b518 /py/emitpass1.c | |
parent | 3558f62fb5c21a19a518c2ba75860f0b5963219e (diff) |
py: Wrap #if's around emitter functions that are used only by emitcpy.
3 emitter functions are needed only for emitcpy, and so we can #if them
out when compiling with emitcpy support.
Also remove unused SETUP_LOOP bytecode.
Diffstat (limited to 'py/emitpass1.c')
-rw-r--r-- | py/emitpass1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c index bccdb4cc8..64b58c475 100644 --- a/py/emitpass1.c +++ b/py/emitpass1.c @@ -189,7 +189,9 @@ const emit_method_table_t emit_pass1_method_table = { (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, +#if MICROPY_EMIT_CPYTHON (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, (void*)emit_pass1_dummy, +#endif }; |