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;
}