From 910843e86ddd4fb9bb482d6ca2f03700cc5cef9e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 14 Feb 2014 12:02:34 +0200 Subject: Allow ports to define statically builtin functions. Convert unix open() to such. --- py/runtime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py/runtime.c') diff --git a/py/runtime.c b/py/runtime.c index f12b3e6125..01a015340d 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -144,6 +144,9 @@ STATIC const mp_builtin_elem_t builtin_table[] = { { MP_QSTR_str, (mp_obj_t)&mp_builtin_str_obj }, { MP_QSTR_bytearray, (mp_obj_t)&mp_builtin_bytearray_obj }, + // Extra builtins as defined by a port + MICROPY_EXTRA_BUILTINS + { MP_QSTR_, MP_OBJ_NULL }, // end of list sentinel }; -- cgit v1.2.3