Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Assert.cpp
blob45524c643579ada648959a10088a91e14e64beab
1 #include "ace/Assert.h"
2 #include "ace/Log_Category.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 // The following ASSERT macro is courtesy of Alexandre Karev
7 // <akg@na47sun05.cern.ch>.
8 void
9 __ace_assert(const char *file, int line, const ACE_TCHAR *expression)
11 int error = ACE_Log_Msg::last_error_adapter ();
12 ACE_Log_Msg *log = ACE_Log_Msg::instance ();
14 log->set (file, line, -1, error, log->restart (),
15 log->msg_ostream (), log->msg_callback ());
17 #ifdef ACE_LACKS_VA_FUNCTIONS
18 #define LOG_ARGS
19 #else
20 #define LOG_ARGS(X) X
21 #endif
22 log->log LOG_ARGS ((LM_ERROR, ACE_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), expression, -1));
25 ACE_END_VERSIONED_NAMESPACE_DECL