summaryrefslogtreecommitdiffstatshomepage
path: root/py/map.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-09 20:57:50 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-09 20:57:50 +0000
commit062478e66d03cc59ed73484a3032ef5f08db12a4 (patch)
tree6d3beb59ade6fe3d1ab7a5f05ff876e63062717f /py/map.h
parentd944a66ead38b15b5a3c7a4ae8b054451fd5c077 (diff)
downloadmicropython-062478e66d03cc59ed73484a3032ef5f08db12a4.tar.gz
micropython-062478e66d03cc59ed73484a3032ef5f08db12a4.zip
Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
Diffstat (limited to 'py/map.h')
-rw-r--r--py/map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/map.h b/py/map.h
index 4905f5bc18..5ce4e835b6 100644
--- a/py/map.h
+++ b/py/map.h
@@ -18,7 +18,7 @@ typedef struct _mp_set_t {
mp_obj_t *table;
} mp_set_t;
-typedef enum {
+typedef enum _mp_map_lookup_kind_t {
MP_MAP_LOOKUP,
MP_MAP_LOOKUP_ADD_IF_NOT_FOUND,
MP_MAP_LOOKUP_REMOVE_IF_FOUND,