From 0d5797a827fe37b1e0561a57e7392e46d5b45c98 Mon Sep 17 00:00:00 2001 From: Geoff Langdale Date: Wed, 26 Sep 2018 13:28:16 +1000 Subject: [PATCH] Wrap the tape dump in debug code. --- src/stage34_unified.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/stage34_unified.cpp b/src/stage34_unified.cpp index e88279e3..1d78fdb4 100644 --- a/src/stage34_unified.cpp +++ b/src/stage34_unified.cpp @@ -13,7 +13,7 @@ #include "jsonparser/simdjson_internal.h" #include -//#define DEBUG +#define DEBUG #define PATH_SEP '/' #if defined(DEBUG) && !defined(DEBUG_PRINTF) @@ -833,11 +833,15 @@ array_continue: succeed: DEBUG_PRINTF("in succeed\n"); - //pj.dump_tapes(); +#ifdef DEBUG + pj.dump_tapes(); +#endif return true; fail: DEBUG_PRINTF("in fail\n"); - //pj.dump_tapes(); +#ifdef DEBUG + pj.dump_tapes(); +#endif return false; }