diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-08 18:48:12 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-08 18:48:12 +0000 |
commit | 93a9b5b64d8c26ed1df739a59e6eabcfe1c64aa7 (patch) | |
tree | a7cc10ff0f3d5b97caae733784cf41c7ec276521 /py/runtime.c | |
parent | 6c73ca1e754aa5fb822999a0b46f01e216619ec6 (diff) |
py: Proper framework for built-in 'type'.
Diffstat (limited to 'py/runtime.c')
-rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index 387e10abb..3c92ca68c 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -111,7 +111,7 @@ void rt_init(void) { mp_map_add_qstr(&map_builtins, MP_QSTR_list, (mp_obj_t)&list_type); mp_map_add_qstr(&map_builtins, MP_QSTR_set, (mp_obj_t)&set_type); mp_map_add_qstr(&map_builtins, MP_QSTR_tuple, (mp_obj_t)&tuple_type); - mp_map_add_qstr(&map_builtins, MP_QSTR_type, (mp_obj_t)&mp_builtin_type_obj); // TODO + mp_map_add_qstr(&map_builtins, MP_QSTR_type, (mp_obj_t)&mp_const_type); // built-in user functions; TODO covert all to &mp_builtin_xxx's mp_map_add_qstr(&map_builtins, MP_QSTR_abs, rt_make_function_1(mp_builtin_abs)); |