diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-07-23 15:32:05 -0400 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-07-23 15:32:05 -0400 |
| commit | f91493c97e20eef1d39a9cdc6c42a25cfd511734 (patch) | |
| tree | 7e7062c9c12220d798cfa154e0729b7cf3e6447b /py/objmodule.c | |
| parent | af1ede930ba643d68850c541ef4075d5f7fd4f02 (diff) | |
Measure and report maximum stack usage. (#175)
Add max stack usage tracking, visible via debug module ustack.
Add separate cpp flag for enabling modules: MICROPY_DEBUG_MODULES
Diffstat (limited to 'py/objmodule.c')
| -rw-r--r-- | py/objmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objmodule.c b/py/objmodule.c index 9171b2b22..1b9b9d65e 100644 --- a/py/objmodule.c +++ b/py/objmodule.c @@ -226,7 +226,7 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = { // extra builtin modules as defined by a port MICROPY_PORT_BUILTIN_MODULES -#if defined(DEBUG) && defined(MICROPY_PORT_BUILTIN_DEBUG_MODULES) +#if defined(MICROPY_DEBUG_MODULES) && defined(MICROPY_PORT_BUILTIN_DEBUG_MODULES) , MICROPY_PORT_BUILTIN_DEBUG_MODULES #endif }; |
