From bcd21b9aa9a5186af9ca666756aa253dbace4c68 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 15 Apr 2022 18:03:28 +0800 Subject: Print notice if assertion is disabled. --- main_simple_scanner.cpp | 2 ++ 1 file changed, 2 insertions(+) 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{}; -- cgit v1.2.3