summaryrefslogtreecommitdiff
path: root/py/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index ead3ce864..aa5ed179b 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -421,7 +421,9 @@ typedef struct _mp_rom_obj_t { mp_const_obj_t o; } mp_rom_obj_t;
// param obj_module: mp_obj_module_t instance
// prarm enabled_define: used as `#if (enabled_define) around entry`
+#ifndef NO_QSTR
#define MP_REGISTER_MODULE(module_name, obj_module, enabled_define)
+#endif
// Underlying map/hash table implementation (not dict object or map function)