summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-03 22:41:40 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-03 22:41:40 +0100
commitcff638a43a0eec7a11d7df70c6381e27312787b1 (patch)
tree428c1a71f867a2081903cd6178b9d024e9e039bb /py/runtime.c
parentd5f5b2f76698e29f9cc2f0ae682d2475c0d77baa (diff)
parent72521a1c176506c044169038b68b83e5329a3dda (diff)
downloadmicropython-cff638a43a0eec7a11d7df70c6381e27312787b1.tar.gz
micropython-cff638a43a0eec7a11d7df70c6381e27312787b1.zip
Merge branch 'mingw-float-printf' of github.com:stinos/micropython into stinos-mingw-float-printf
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 2928de8a72..ba78ec40f3 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -42,6 +42,11 @@ const mp_obj_module_t mp_module___main__ = {
};
void mp_init(void) {
+ // call port specific initialization if any
+#ifdef MICROPY_PORT_INIT_FUNC
+ MICROPY_PORT_INIT_FUNC;
+#endif
+
mp_emit_glue_init();
// init global module stuff