#include <boost/config.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786)
#pragma warning(disable: 4710)
#pragma warning(disable: 4711)
#pragma warning(disable: 4514)
#endif
#include <boost/current_function.hpp>
#include <boost/config.hpp>
#include <cstdio>
void message(char const * file, long line, char const * func, char const * msg)
{
#if !defined(BOOST_NO_STDC_NAMESPACE)
using std::printf;
#endif
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("testing BOOST_CURRENT_FUNCTION");
return 0;
}