Assert.cpp File Reference

#include "ace/Assert.h"
#include "ace/Log_Msg.h"

Include dependency graph for Assert.cpp:

Include dependency graph

Go to the source code of this file.

Functions

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
void 
__ace_assert (const char *file, int line, const ACE_TCHAR *expression)


Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL void __ace_assert const char *  file,
int  line,
const ACE_TCHAR expression
 

Definition at line 13 of file Assert.cpp.

References ACE_LIB_TEXT, ACE_TCHAR, ACE_Log_Msg::instance(), ACE_Log_Msg::last_error_adapter(), LM_ERROR, ACE_Log_Msg::log(), ACE_Log_Msg::msg_callback(), ACE_Log_Msg::msg_ostream(), ACE_Log_Msg::restart(), and ACE_Log_Msg::set().

00014 {
00015   int error = ACE_Log_Msg::last_error_adapter ();
00016   ACE_Log_Msg *log = ACE_Log_Msg::instance ();
00017 
00018   log->set (file, line, -1, error, log->restart (),
00019             log->msg_ostream (), log->msg_callback ());
00020   
00021   log->log (LM_ERROR, ACE_LIB_TEXT ("ACE_ASSERT: file %N, line %l assertion failed for '%s'.%a\n"), expression, -1);
00022 }


Generated on Thu Nov 9 09:57:48 2006 for ACE by doxygen 1.3.6