summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitcommon.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/emitcommon.c')
-rw-r--r--py/emitcommon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/emitcommon.c b/py/emitcommon.c
index 1fd2bd1dc1..435188f366 100644
--- a/py/emitcommon.c
+++ b/py/emitcommon.c
@@ -28,6 +28,8 @@
#include "py/emit.h"
+#if MICROPY_ENABLE_COMPILER
+
void mp_emit_common_get_id_for_load(scope_t *scope, qstr qst) {
// name adding/lookup
bool added;
@@ -77,3 +79,5 @@ void mp_emit_common_id_op(emit_t *emit, const mp_emit_method_table_id_ops_t *emi
emit_method_table->deref(emit, qst, id->local_num);
}
}
+
+#endif // MICROPY_ENABLE_COMPILER