chiark / gitweb /
WIP routesearch; allow -Ddebugflags=0
[ypp-sc-tools.main.git] / yarrg / rsmain.c
index 7904c013c1362b622d13017d54ce6ed351e689b1..868d790411d4db5afd9457349f0f1a9b2d684103 100644 (file)
@@ -10,15 +10,20 @@ int max_dist= -1;
 int main(int argc, const char **argv) {
   const char *arg;
 
+#ifndef debug_flags
   debug_flags= ~( dbg_sql2 );
+#endif
   sysassert( !setvbuf(debug,0,_IOLBF,0) );
   
   for (;;) {
     arg= *++argv;
     if (arg[0] != '-') break;
+#ifndef debug_flags
     if (!strcmp(arg,"-DN")) {
       debug_flags= 0;
-    } else {
+    } else
+#endif
+    {
       abort();
     }
   }