commit | 44739e280e81c2ebf2491818eb5a6d0ef30c7c6b | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Feb 16 18:11:42 2014 +0200 |
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | Sun Feb 16 18:20:49 2014 +0200 |
tree | b3dd81094d08289663452e9c9b744b37750e3869 | |
parent | 1b694c082eeda7b147ac7873964a3dd7bb9583a3 [diff] [blame] |
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).
diff --git a/py/misc.h b/py/misc.h index 065b070..989650c 100644 --- a/py/misc.h +++ b/py/misc.h
@@ -117,4 +117,7 @@ void vstr_vprintf(vstr_t *vstr, const char *fmt, va_list ap); #endif +// Debugging helpers +int DEBUG_printf(const char *fmt, ...); + #endif // _INCLUDED_MINILIB_H