diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-07 15:30:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-07 15:30:15 +0100 |
commit | c35e53436b9adb3c49a8980d018b2f8198db8077 (patch) | |
tree | 1227049154a3e1facd757eec090e851def039c35 /unix/mpconfigport.h | |
parent | 1dd46fafbd11941f7aa5b3b3c1f3d63e102e85cf (diff) | |
parent | 117c46d9eb00e8ffaabc1002a4946440cb1eb5b0 (diff) | |
download | micropython-c35e53436b9adb3c49a8980d018b2f8198db8077.tar.gz micropython-c35e53436b9adb3c49a8980d018b2f8198db8077.zip |
Merge pull request #582 from dhylands/unix-input
Add input command for unix
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r-- | unix/mpconfigport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 41bc6a3937..ca470d9c29 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -72,6 +72,8 @@ typedef unsigned int machine_uint_t; // must be pointer size typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size +extern const struct _mp_obj_fun_native_t mp_builtin_input_obj; extern const struct _mp_obj_fun_native_t mp_builtin_open_obj; #define MICROPY_EXTRA_BUILTINS \ + { MP_OBJ_NEW_QSTR(MP_QSTR_input), (mp_obj_t)&mp_builtin_input_obj }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj }, |