]> granicus.if.org Git - re2c/commitdiff
In debug build, add " (debug)" to version string.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 3 Jan 2019 10:44:24 +0000 (10:44 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 3 Jan 2019 10:44:24 +0000 (10:44 +0000)
re2c/src/conf/msg.cc

index b21e4ffc669deb5b1558d6c9f48e798425a0f2be..43cb354640d58c5eb62969cc13073c24a9698123 100644 (file)
@@ -112,7 +112,11 @@ void vernum ()
 
 void version ()
 {
-    printf ("re2c %s\n", PACKAGE_VERSION);
+#ifdef RE2C_DEBUG
+    printf("re2c %s (debug)\n", PACKAGE_VERSION);
+#else
+    printf("re2c %s\n", PACKAGE_VERSION);
+#endif
 }
 
 std::string incond (const std::string & cond)