mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
Allow ports to define statically builtin functions.
Convert unix open() to such.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user