File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -775,6 +775,7 @@ STATIC const mp_rom_map_elem_t mp_module_builtins_globals_table[] = {
775
775
776
776
// Extra builtins as defined by a port
777
777
MICROPY_PORT_BUILTINS
778
+ MICROPY_PORT_EXTRA_BUILTINS
778
779
};
779
780
780
781
MP_DEFINE_CONST_DICT (mp_module_builtins_globals , mp_module_builtins_globals_table );
Original file line number Diff line number Diff line change @@ -1581,6 +1581,12 @@ typedef double mp_float_t;
1581
1581
#define MICROPY_PORT_BUILTINS
1582
1582
#endif
1583
1583
1584
+ // Additional builtin function definitions for extension by command-line, boards or variants.
1585
+ // See modbuiltins.c:mp_module_builtins_globals_table for format.
1586
+ #ifndef MICROPY_PORT_EXTRA_BUILTINS
1587
+ #define MICROPY_PORT_EXTRA_BUILTINS
1588
+ #endif
1589
+
1584
1590
// Additional builtin module definitions - see objmodule.c:mp_builtin_module_table for format.
1585
1591
#ifndef MICROPY_PORT_BUILTIN_MODULES
1586
1592
#define MICROPY_PORT_BUILTIN_MODULES
You can’t perform that action at this time.
0 commit comments