forked from boostorg/assert
Change 'assertion failed' message to something less scary (fixes #12)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user