Skip to content

Commit d14bb57

Browse files
committed
Fix mp_frozen_names
1 parent 2c795ac commit d14bb57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

py/builtinhelp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,17 @@ STATIC void mp_help_add_from_names(mp_obj_t list, const char *name) {
7777
}
7878
#endif
7979

80+
#if MICROPY_MODULE_FROZEN
81+
extern const char mp_frozen_names[];
82+
#endif
83+
8084
STATIC void mp_help_print_modules(void) {
8185
mp_obj_t list = mp_obj_new_list(0, NULL);
8286

8387
mp_help_add_from_map(list, &mp_builtin_module_map);
8488
mp_help_add_from_map(list, &mp_builtin_extensible_module_map);
8589

8690
#if MICROPY_MODULE_FROZEN
87-
extern const char mp_frozen_names[];
8891
mp_help_add_from_names(list, mp_frozen_names);
8992
#endif
9093

0 commit comments

Comments
 (0)