summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-15 18:03:28 +0800
committerKeuin <[email protected]>2022-04-15 18:03:28 +0800
commitbcd21b9aa9a5186af9ca666756aa253dbace4c68 (patch)
tree38e495c749e1a79b652c73ca19b54be96673198c
parent272141d93324f32c15b7e230b0e37d122a418f54 (diff)
Print notice if assertion is disabled.
-rw-r--r--main_simple_scanner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp
index 72091dd..b116933 100644
--- a/main_simple_scanner.cpp
+++ b/main_simple_scanner.cpp
@@ -91,6 +91,8 @@ int main(int argc, char **argv) {
}
#ifndef NDEBUG
std::cerr << "Notice: assertion is enabled." << std::endl;
+#else
+ std::cerr << "Notice: assertion is disabled." << std::endl;
#endif
std::string iw{argv[1]}, ih{argv[2]}, vw{argv[3]}, fl{argv[4]},
sz{argv[5]}, sr{argv[6]}, sp{argv[7]}, cap{};