Commit 343dad2e authored by Charles Jacobsen's avatar Charles Jacobsen
Browse files

Allow debug toggling.

parent 2f13590c
......@@ -76,11 +76,12 @@
#define DEBUGPRINTF printf
#endif
//#define DEBUG_STATS(XX)
#ifdef NDEBUG
#define DEBUG_STATS(XX)
#else
#define DEBUG_STATS(XX) do{ XX; } while (0)
#define DEBUG_STATS_PREFIX " stats: "
//#define VERBOSE_DEBUG
#endif
#ifdef VERBOSE_DEBUG
#define DEBUG_YIELD(XX) do{ XX; } while (0)
......
......@@ -31,9 +31,12 @@
#define DEBUGPRINTF debug_printf
#endif
//#define DEBUG_SYNC(XX)
#ifdef NDEBUG
#define DEBUG_SYNC(XX)
#else
#define DEBUG_SYNC(XX) do{ XX; } while (0)
#define DEBUG_SYNC_PREFIX " sync: "
#endif
//......................................................................
//
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment