summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2018-12-12 16:50:55 +1100
committerDamien George <damien.p.george@gmail.com>2019-03-08 22:58:42 +1100
commit89ff506513d52c0c415b2cf45335d60cefac527d (patch)
tree6929b54bd0f73994ccfdb09523186b7e6b40cda6 /py/objmodule.c
parent2e516074daee76fb3e0710a893a0f40532bb3252 (diff)
downloadmicropython-89ff506513d52c0c415b2cf45335d60cefac527d.tar.gz
micropython-89ff506513d52c0c415b2cf45335d60cefac527d.zip
py: Update and rework build system for including external C modules.
How to use this feature is documented in docs/develop/cmodules.rst.
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 04d210260d..9191c73ec3 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -31,6 +31,8 @@
#include "py/runtime.h"
#include "py/builtin.h"
+#include "genhdr/moduledefs.h"
+
STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
(void)kind;
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);