]> thyrsus.com Git - microjson.git/commitdiff
Enable debugging.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 15:57:21 +0000 (11:57 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 15:57:21 +0000 (11:57 -0400)
test_microjson.c

index 5407fc5bff2f990ae632c517ff0171a849fa4aab..b2ba68a5b8065355e11381548c9229ea025c8cfc 100644 (file)
@@ -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);