diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-03 22:55:16 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-03 22:55:16 +0000 |
| commit | 97334c85d0b53ef1648eb76ec6e9e2b1efab1f97 (patch) | |
| tree | d10f6b6b7ca3394e6f7dc31ca55e0df2b39abe02 /py/obj.h | |
| parent | 25f417c08c2cdb5c4a7564d1e69766c0448d7984 (diff) | |
| parent | b7aa72710ee6798c6d2bc2632be24206e526fc1e (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -215,11 +215,14 @@ mp_obj_t mp_obj_dict_store(mp_obj_t self_in, mp_obj_t key, mp_obj_t value); void mp_obj_set_store(mp_obj_t self_in, mp_obj_t item); // functions -typedef struct _mp_obj_fun_native_t { // need this so we can define static objects +typedef struct _mp_obj_fun_native_t { // need this so we can define const objects (to go in ROM) mp_obj_base_t base; machine_uint_t n_args_min; // inclusive machine_uint_t n_args_max; // inclusive void *fun; + // TODO add mp_map_t *globals + // for const function objects, make an empty, const map + // such functions won't be able to access the global scope, but that's probably okay } mp_obj_fun_native_t; extern const mp_obj_type_t fun_native_type; extern const mp_obj_type_t fun_bc_type; |
