From cbd2f7482c8bf457cc17da763859dbba6e03e2a2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 19 Jan 2014 11:48:48 +0000 Subject: 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. --- py/mpconfig.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'py/mpconfig.h') 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 /*****************************************************************************/ -- cgit v1.2.3