From 793d7580e84baf73bf0dbfdd0eb112a6356075e1 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Mar 2021 19:06:53 +0200 Subject: [PATCH] Change 'assertion failed' message to something less scary (fixes #12) --- test/current_function_test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/current_function_test.cpp b/test/current_function_test.cpp index 1343901..c664696 100644 --- a/test/current_function_test.cpp +++ b/test/current_function_test.cpp @@ -27,14 +27,13 @@ void message(char const * file, long line, char const * func, char const * msg) using std::printf; #endif - printf("%s(%ld): %s in function '%s'\n", file, line, msg, func); + printf("%s(%ld): in function '%s': %s\n", file, line, func, msg); } #define MESSAGE(msg) message(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION, msg) int main() { - MESSAGE("assertion failed"); - + MESSAGE("testing BOOST_CURRENT_FUNCTION"); return 0; }