diff options
| author | Damien George | 2018-08-02 14:04:44 +1000 |
|---|---|---|
| committer | Damien George | 2018-08-02 14:04:44 +1000 |
| commit | da2d2b6d884201f2cbb23f74c6c5557e30fb1f14 (patch) | |
| tree | 6b864f05d8d8d11cc6ae1b576f954cfd22c2038e /ports/unix | |
| parent | 0c161691b490b885c40c96b34bbb13264e259dff (diff) | |
py/mpconfig.h: Introduce MICROPY_DEBUG_PRINTER for debugging output.
This patch in effect renames MICROPY_DEBUG_PRINTER_DEST to
MICROPY_DEBUG_PRINTER, moving its default definition from
lib/utils/printf.c to py/mpconfig.h to make it official and documented, and
makes this macro a pointer rather than the actual mp_print_t struct. This
is done to get consistency with MICROPY_ERROR_PRINTER, and provide this
macro for use outside just lib/utils/printf.c.
Ports are updated to use the new macro name.
Diffstat (limited to 'ports/unix')
| -rw-r--r-- | ports/unix/mpconfigport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h index 4f71a9ef5..68be46239 100644 --- a/ports/unix/mpconfigport.h +++ b/ports/unix/mpconfigport.h @@ -54,7 +54,7 @@ #define MICROPY_DEBUG_PRINTERS (1) // Printing debug to stderr may give tests which // check stdout a chance to pass, etc. -#define MICROPY_DEBUG_PRINTER_DEST mp_stderr_print +#define MICROPY_DEBUG_PRINTER (&mp_stderr_print) #define MICROPY_READER_POSIX (1) #define MICROPY_USE_READLINE_HISTORY (1) #define MICROPY_HELPER_REPL (1) |
