summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpstate.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-05 00:09:10 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-05 00:13:29 +0200
commit1a1d11fa32ba043d22995d28cbc039cfa5f3cc46 (patch)
treeebe82caf230957315c45e26f4873f85cbe0b0d19 /py/mpstate.h
parent5ae3ddcc9a8fab9c845d98d58b26b6d258809475 (diff)
downloadmicropython-1a1d11fa32ba043d22995d28cbc039cfa5f3cc46.tar.gz
micropython-1a1d11fa32ba043d22995d28cbc039cfa5f3cc46.zip
py/modsys: Implement sys.modules.
This for example will allow people to reload modules which didn't load successfully (e.g. due to syntax error).
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index d0baad2b78..e9e38606e7 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -100,9 +100,8 @@ typedef struct _mp_state_vm_t {
#endif
#endif
- // map with loaded modules
- // TODO: expose as sys.modules
- mp_map_t mp_loaded_modules_map;
+ // dictionary with loaded modules (may be exposed as sys.modules)
+ mp_obj_dict_t mp_loaded_modules_dict;
// pending exception object (MP_OBJ_NULL if not pending)
volatile mp_obj_t mp_pending_exception;