summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitpass1.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-20 18:02:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-20 18:02:27 +0100
commit5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e (patch)
treef8dc88109db6b46e531990df74fbb4d99254b518 /py/emitpass1.c
parent3558f62fb5c21a19a518c2ba75860f0b5963219e (diff)
downloadmicropython-5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e.tar.gz
micropython-5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e.zip
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c
index bccdb4cc87..64b58c4757 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
};