From: Eric S. Raymond Date: Wed, 17 Sep 2014 15:57:21 +0000 (-0400) Subject: Enable debugging. X-Git-Tag: 1.0~29 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=877ca7a9ed8c6890723d013e90cd32c940db3129;p=microjson.git Enable debugging. --- 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);