mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
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).
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
// also probably need to include the length in the string data, to allow null bytes in the string
|
||||
|
||||
#if 0 // print debugging info
|
||||
#include <stdio.h>
|
||||
#define DEBUG_printf(args...) printf(args)
|
||||
#define DEBUG_printf DEBUG_printf
|
||||
#else // don't print debugging info
|
||||
#define DEBUG_printf(args...) (void)0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user