diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-20 10:30:24 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-20 10:30:24 +0000 |
commit | 91d457a27752fa125e9c6107bf51c918e021dc95 (patch) | |
tree | f903b5dbe1bea6a16944e6cf696387574f207ff7 /py/runtime.c | |
parent | 589233622ccbed5d7684890a181ac7e61839f630 (diff) | |
download | micropython-91d457a27752fa125e9c6107bf51c918e021dc95.tar.gz micropython-91d457a27752fa125e9c6107bf51c918e021dc95.zip |
py: Put micropython module init code in builtinmp.c.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/py/runtime.c b/py/runtime.c index 09e4237aff..d8fc3ff6e4 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -157,13 +157,7 @@ void rt_init(void) { mp_obj_new_module(qstr_from_str_static("sys")); #endif - mp_obj_t m_mp = mp_obj_new_module(qstr_from_str_static("micropython")); - rt_store_name(qstr_from_str_static("micropython"), m_mp); -#if MICROPY_MEM_STATS - rt_store_attr(m_mp, qstr_from_str_static("mem_total"), (mp_obj_t)&mp_builtin_mem_total_obj); - rt_store_attr(m_mp, qstr_from_str_static("mem_current"), (mp_obj_t)&mp_builtin_mem_current_obj); - rt_store_attr(m_mp, qstr_from_str_static("mem_peak"), (mp_obj_t)&mp_builtin_mem_peak_obj); -#endif + mp_module_micropython_init(); next_unique_code_id = 1; // 0 indicates "no code" unique_codes_alloc = 0; |