Skip to content

Commit af38f88

Browse files
authored
Update objmodule.c
1 parent 7549326 commit af38f88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

py/objmodule.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#include "py/runtime.h"
3333
#include "py/builtin.h"
3434

35+
#include "genhdr/moduledefs.h"
36+
3537
STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
3638
(void)kind;
3739
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);
@@ -252,6 +254,11 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
252254
// extra builtin modules as defined by a port
253255
MICROPY_PORT_BUILTIN_MODULES
254256

257+
#ifdef MICROPY_REGISTERED_MODULES
258+
// builtin modules declared with MP_REGISTER_MODULE()
259+
MICROPY_REGISTERED_MODULES
260+
#endif
261+
255262
#if defined(MICROPY_DEBUG_MODULES) && defined(MICROPY_PORT_BUILTIN_DEBUG_MODULES)
256263
, MICROPY_PORT_BUILTIN_DEBUG_MODULES
257264
#endif

0 commit comments

Comments
 (0)