From 877ca7a9ed8c6890723d013e90cd32c940db3129 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 17 Sep 2014 11:57:21 -0400 Subject: [PATCH] Enable debugging. --- test_microjson.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test_microjson.c b/test_microjson.c index 5407fc5..b2ba68a 100644 --- a/test_microjson.c +++ b/test_microjson.c @@ -726,7 +726,11 @@ int main(int argc, char *argv[]) while ((option = getopt(argc, argv, "hn:D:?")) != -1) { switch (option) { case 'D': - //gps_enable_debug(atoi(optarg), stdout); +#ifdef DEBUG_ENABLE + json_enable_debug(atoi(optarg), stdout); +#else + fputs("Debug disabled in build\n", stderr); +#endif break; case 'n': individual = atoi(optarg); -- 2.43.0