From 44739e280e81c2ebf2491818eb5a6d0ef30c7c6b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 16 Feb 2014 18:11:42 +0200 Subject: Make DEBUG_printf() a proper function, implementation is port-dependent. In particular, unix outputs to stderr, to allow to run testsuite against micropython built with debug output (by redirecting stderr to /dev/null). --- py/runtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/runtime.c') diff --git a/py/runtime.c b/py/runtime.c index 9d93dbf2ad..9fc0b97088 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -23,8 +23,8 @@ #if 0 // print debugging info #define DEBUG_PRINT (1) #define WRITE_CODE (1) -#define DEBUG_printf(args...) printf(args) -#define DEBUG_OP_printf(args...) printf(args) +#define DEBUG_printf DEBUG_printf +#define DEBUG_OP_printf(args...) DEBUG_printf(args) #else // don't print debugging info #define DEBUG_printf(args...) (void)0 #define DEBUG_OP_printf(args...) (void)0 -- cgit v1.2.3