diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-14 23:05:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-14 23:05:50 +0000 |
commit | 7ef098000aafe67decba084798df49a8719695db (patch) | |
tree | 4834109f435b73b3c9297d4343000c7b0b3798a4 /unix/mpconfigport.h | |
parent | 25735ba6d3f5a3cf35b3fc814a13d55dcfa29497 (diff) | |
parent | 910843e86ddd4fb9bb482d6ca2f03700cc5cef9e (diff) |
Merge pull request #288 from pfalcon/port-builtins
Allow ports to define statically builtin functions.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r-- | unix/mpconfigport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index dc9297010..5b2503f4d 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -36,3 +36,8 @@ typedef const void *machine_const_ptr_t; // must be of pointer size typedef double machine_float_t; machine_float_t machine_sqrt(machine_float_t x); + +struct _mp_obj_fun_native_t; +extern const struct _mp_obj_fun_native_t mp_builtin_open_obj; +#define MICROPY_EXTRA_BUILTINS \ + { MP_QSTR_open, (mp_obj_t)&mp_builtin_open_obj }, |