diff options
| author | Dave Hylands <dhylands@gmail.com> | 2014-05-07 07:15:00 -0700 |
|---|---|---|
| committer | Dave Hylands <dhylands@gmail.com> | 2014-05-07 07:19:51 -0700 |
| commit | 117c46d9eb00e8ffaabc1002a4946440cb1eb5b0 (patch) | |
| tree | b247a7b62a896d2bbf06469a6ee384da3da8f46a /unix/mpconfigport.h | |
| parent | 0ef015b2533f7faeede18382c1d1f4eac919244b (diff) | |
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 41bc6a393..ca470d9c2 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 }, |
