diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-22 23:59:20 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-22 23:59:20 +0000 |
commit | 0d028743aa12ef935b27fdbaf0a5ad3ca62d7628 (patch) | |
tree | fef0f48e45badbc8bdab625721f314b01c77288d /py/runtime.h | |
parent | f64086f80f1493c7f5009e99f4bd1fba47332cd3 (diff) | |
download | micropython-0d028743aa12ef935b27fdbaf0a5ad3ca62d7628.tar.gz micropython-0d028743aa12ef935b27fdbaf0a5ad3ca62d7628.zip |
py: Initialise loaded_module map in rt_init.
STM port crashes without this re-init. There should not be any state in
the core py/ code that relies on pre-initialised data.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h index 770cac8a65..d62d1f86d6 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -43,3 +43,4 @@ struct _mp_map_t *rt_locals_get(void); void rt_locals_set(struct _mp_map_t *m); struct _mp_map_t *rt_globals_get(void); void rt_globals_set(struct _mp_map_t *m); +struct _mp_map_t *rt_loaded_modules_get(void); |