summaryrefslogtreecommitdiff
path: root/py/dynruntime.h
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2020-03-04 17:07:42 +1100
committerDamien George <damien.p.george@gmail.com>2020-04-05 14:13:02 +1000
commitc34e7b9d4c6f369cd86fd6fcc779932226200cdf (patch)
tree5c16d30e29dab3e88019d4d5919c80cc1877c23c /py/dynruntime.h
parent994c1dd57a6faae06b53ea5082ace6e5ee956141 (diff)
py/dynruntime.mk: Set MICROPY_ENABLE_DYNRUNTIME instead of per module.
So this setting could be used by other source files if needed.
Diffstat (limited to 'py/dynruntime.h')
-rw-r--r--py/dynruntime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/dynruntime.h b/py/dynruntime.h
index 494ad772d..9f2803c53 100644
--- a/py/dynruntime.h
+++ b/py/dynruntime.h
@@ -33,6 +33,10 @@
#include "py/objstr.h"
#include "py/objtype.h"
+#if !MICROPY_ENABLE_DYNRUNTIME
+#error "dynruntime.h included in non-dynamic-module build."
+#endif
+
#undef MP_ROM_QSTR
#undef MP_OBJ_QSTR_VALUE
#undef MP_OBJ_NEW_QSTR