[6916] Fixed typos in spell checking code.
[getmangos.git] / dep / ACE_wrappers / ace / Assert.cpp
blob4a71c9e5a9db6f4d7206fb84fc66b70e14bfe537
1 // $Id: Assert.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #include "ace/Assert.h"
4 #include "ace/Log_Msg.h"
6 ACE_RCSID(ace, Assert, "$Id: Assert.cpp 80826 2008-03-04 14:51:23Z wotte $")
8 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
10 // The following ASSERT macro is courtesy of Alexandre Karev
11 // <akg@na47sun05.cern.ch>.
12 void
13 __ace_assert(const char *file, int line, const ACE_TCHAR *expression)
15 int error = ACE_Log_Msg::last_error_adapter ();
16 ACE_Log_Msg *log = ACE_Log_Msg::instance ();
18 log->set (file, line, -1, error, log->restart (),
19 log->msg_ostream (), log->msg_callback ());
21 log->log (LM_ERROR, ACE_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), expression, -1);
24 ACE_END_VERSIONED_NAMESPACE_DECL