diff options
| author | Damien George | 2014-01-19 11:48:48 +0000 |
|---|---|---|
| committer | Damien George | 2014-01-19 11:48:48 +0000 |
| commit | cbd2f7482c8bf457cc17da763859dbba6e03e2a2 (patch) | |
| tree | 8d6badc4197fe0d5763d381dd97586176db9fbae /py/mpconfig.h | |
| parent | e02b2d43912d13d216936786e4b7a33918877418 (diff) | |
py: Add module/function/class name to exceptions.
Exceptions know source file, line and block name.
Also tidy up some debug printing functions and provide a global
flag to enable/disable them.
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 505b1b2d1..97e4b1387 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -39,9 +39,11 @@ #define MICROPY_MEM_STATS (0) #endif -// Whether to build code to show byte code -#ifndef MICROPY_SHOW_BC -#define MICROPY_SHOW_BC (0) +// Whether to build functions that print debugging info: +// mp_byte_code_print +// mp_parse_node_print +#ifndef MICROPY_DEBUG_PRINTERS +#define MICROPY_DEBUG_PRINTERS (0) #endif /*****************************************************************************/ |
