2
0
mirror of https://github.com/boostorg/assert.git synced 2026-01-23 05:22:09 +00:00

taken care of BOOST_NO_STDC_NAMESPACE

[SVN r25345]
This commit is contained in:
Joaquín M. López Muñoz
2004-09-22 17:18:06 +00:00
committed by Peter Dimov
parent 93bb9faf25
commit 6ad5ec4810
2 changed files with 12 additions and 2 deletions

View File

@@ -18,11 +18,16 @@
//
#include <boost/current_function.hpp>
#include <boost/config.hpp>
#include <cstdio>
void message(char const * file, long line, char const * func, char const * msg)
{
std::printf("%s(%ld): %s in function '%s'\n", file, line, msg, func);
#if !defined(BOOST_NO_STDC_NAMESPACE)
using std::printf;
#endif
printf("%s(%ld): %s in function '%s'\n", file, line, msg, func);
}
#define MESSAGE(msg) message(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION, msg)