mirror of
https://github.com/boostorg/assert.git
synced 2026-01-25 16:42:22 +01:00
taken care of BOOST_NO_STDC_NAMESPACE
[SVN r25345]
This commit is contained in:
committed by
Peter Dimov
parent
93bb9faf25
commit
6ad5ec4810
@@ -51,13 +51,18 @@ void test_disabled()
|
||||
|
||||
#define BOOST_ENABLE_ASSERT_HANDLER
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <cstdio>
|
||||
|
||||
int handler_invoked = 0;
|
||||
|
||||
void boost::assertion_failed(char const * expr, char const * function, char const * file, long line)
|
||||
{
|
||||
std::printf("Expression: %s\nFunction: %s\nFile: %s\nLine: %ld\n\n", expr, function, file, line);
|
||||
#if !defined(BOOST_NO_STDC_NAMESPACE)
|
||||
using std::printf;
|
||||
#endif
|
||||
|
||||
printf("Expression: %s\nFunction: %s\nFile: %s\nLine: %ld\n\n", expr, function, file, line);
|
||||
++handler_invoked;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user