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>.
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
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