Update objmodule.c
This commit is contained in:
parent
7549326ceb
commit
af38f882ec
@ -32,6 +32,8 @@
|
|||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "py/builtin.h"
|
#include "py/builtin.h"
|
||||||
|
|
||||||
|
#include "genhdr/moduledefs.h"
|
||||||
|
|
||||||
STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
|
STATIC void module_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
|
||||||
(void)kind;
|
(void)kind;
|
||||||
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);
|
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[] = {
|
|||||||
// extra builtin modules as defined by a port
|
// extra builtin modules as defined by a port
|
||||||
MICROPY_PORT_BUILTIN_MODULES
|
MICROPY_PORT_BUILTIN_MODULES
|
||||||
|
|
||||||
|
#ifdef MICROPY_REGISTERED_MODULES
|
||||||
|
// builtin modules declared with MP_REGISTER_MODULE()
|
||||||
|
MICROPY_REGISTERED_MODULES
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MICROPY_DEBUG_MODULES) && defined(MICROPY_PORT_BUILTIN_DEBUG_MODULES)
|
#if defined(MICROPY_DEBUG_MODULES) && defined(MICROPY_PORT_BUILTIN_DEBUG_MODULES)
|
||||||
, MICROPY_PORT_BUILTIN_DEBUG_MODULES
|
, MICROPY_PORT_BUILTIN_DEBUG_MODULES
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user