Assert.h File Reference

#include "ace/ACE_export.h"
#include "ace/config-all.h"

Include dependency graph for Assert.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define ACE_ASSERT(X)

Functions

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


Detailed Description

Assert.h,v 4.4 2006/01/12 19:49:07 jwillemsen Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Definition in file Assert.h.


Define Documentation

#define ACE_ASSERT  ) 
 

Value:

((X)                                                                    \
   ? static_cast<void>(0)                                               \
   : ACE_VERSIONED_NAMESPACE_NAME::__ace_assert(__FILE__, __LINE__, ACE_TEXT_CHAR_TO_TCHAR (#X)))

Definition at line 30 of file Assert.h.

Referenced by ACE_Based_Pointer< CONCRETE >::ACE_Based_Pointer(), ACE_Based_Pointer_Basic< CONCRETE >::ACE_Based_Pointer_Basic(), ACE_PI_Control_Block::ACE_Name_Node::ACE_Name_Node(), ACE_Service_Type_Forward_Declaration_Guard::ACE_Service_Type_Forward_Declaration_Guard(), ACE_WIN32_Asynch_Read_Dgram_Result::ACE_WIN32_Asynch_Read_Dgram_Result(), ACE_Thread_Descriptor::acquire_release(), ACE_Configuration_Heap::add_section(), ACE_Thread_Manager::apply_all(), ACE_Thread_Manager::apply_grp(), ACE_Thread_Manager::apply_task(), ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::assign(), ACE_Future_Rep< T >::assign(), ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::attach(), ACE_Future_Rep< T >::attach(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::cancel(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::cancel(), ACE_UPIPE_Connector::connect(), ACE_FILE_Connector::connect(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::copy(), ACE_Unbounded_Stack< T >::copy_all_nodes(), ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::create(), ACE_Future_Rep< T >::create(), ACE_Configuration_Heap::create_index_helper(), ACE_SPIPE_Acceptor::create_new_instance(), ACE_Bound_Ptr_Counter< ACE_LOCK >::create_strong(), ACE_Bound_Ptr_Counter< ACE_LOCK >::create_weak(), ACE_Unbounded_Stack< T >::delete_all_nodes(), ACE_Refcounted_Auto_Ptr_Rep< X, ACE_LOCK >::detach(), ACE_Future_Rep< T >::detach(), ACE_Sig_Handlers::dispatch(), ACE_Sig_Handler::dispatch(), ACE_Configuration_Heap::enumerate_sections(), ACE_Configuration_Heap::enumerate_values(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::expire(), ACE_MEM_IO::fetch_recv_buf(), ACE_Service_Gestalt::find(), ACE_TSS_Cleanup::find_tss_keys(), ACE_Configuration_Heap::find_value(), ACE_Static_Allocator_Base::free(), ACE_Configuration_Heap::get_binary_value(), ACE_WIN32_Asynch_Connect::get_handle(), ACE_POSIX_Asynch_Connect::get_handle(), ACE_Configuration_Heap::get_integer_value(), ACE_Configuration_Heap::get_string_value(), ACE_Service_Config::handle_signal(), ACE_TSS_Cleanup::insert(), ACE_Object_Manager::instance(), ACE_Allocator::instance(), ACE_Configuration_Heap::load_key(), ACE_Get_Opt::long_option_i(), ACE_PI_Control_Block::ACE_Name_Node::name(), ACE_Configuration_Heap::new_section(), ACE_Select_Reactor_Notify::notify(), ACE_Dev_Poll_Reactor_Notify::notify(), ACE_TP_Reactor::notify_handle(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::open(), ACE_Configuration_Heap::open_section(), ACE_Unbounded_Set_Const_Iterator< T >::operator *(), ACE_Unbounded_Set_Iterator< T >::operator *(), TSS_Cleanup_Instance::operator *(), ACE_Map_Const_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::operator *(), ACE_Map_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::operator *(), ACE_Hash_Map_Const_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::operator *(), ACE_Hash_Map_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::operator *(), ACE_Ordered_MultiSet_Iterator< T >::operator *(), ACE_Fixed_Set_Const_Iterator< T, ACE_SIZE >::operator *(), ACE_Fixed_Set_Iterator< T, ACE_SIZE >::operator *(), ACE_Svc_Handler<, >::operator new(), TSS_Cleanup_Instance::operator->(), ACE_Hash_Map_Const_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::operator->(), ACE_Hash_Map_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::operator->(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::pop_freelist(), ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::postinvoke(), ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::preinvoke(), ACE_Service_Gestalt::process_directives_i(), ACE_WFMO_Reactor_Notify::purge_pending_notifications(), ACE_Select_Reactor_Notify::purge_pending_notifications(), ACE_Dev_Poll_Reactor_Notify::purge_pending_notifications(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::push_freelist(), ACE_WIN32_Asynch_Read_Stream::readv(), ACE_XtReactor::register_handler_i(), ACE_ODB::register_object(), ACE_Data_Block::release_i(), ACE_Token_Manager::release_token(), ACE_Configuration_Heap::remove_section(), ACE_Configuration_Heap::remove_value(), ACE_Token::renew(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::reschedule(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::reset_interval(), ACE_XtReactor::reset_timeout(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::schedule_i(), ACE_Configuration_Heap::section_open_helper(), ACE_ATM_Addr::set(), ACE_Configuration_Heap::set_binary_value(), ACE_WIN32_Asynch_Connect::set_handle(), ACE_POSIX_Asynch_Connect::set_handle(), ACE_POSIX_Asynch_Accept::set_handle(), ACE_Configuration_Heap::set_integer_value(), ACE_Configuration_Heap::set_string_value(), ACE_Token::shared_acquire(), ACE_SOCK_SEQPACK_Acceptor::shared_open(), ACE_SOCK_Acceptor::shared_open(), ACE_Thread_Manager::spawn_i(), ACE_TSS_Cleanup::thread_detach_key(), ACE_TSS_Cleanup::thread_release(), ACE_TSS_Cleanup::thread_use_key(), ACE_Timer_Hash_Upcall< TYPE, FUNCTOR, ACE_LOCK >::timeout(), ACE_Timeprobe_Ex< ACE_LOCK, ALLOCATOR >::timeprobe(), TSS_Cleanup_Instance::TSS_Cleanup_Instance(), ACE_TSS_Cleanup::tss_keys(), ACE_Utils::UUID::UUID(), ACE_Configuration_Heap::value_open_helper(), ACE_Thread_Manager::wait(), ACE_Process_Manager::wait(), ACE_WIN32_Asynch_Write_Stream::writev(), ACE_XtReactor::XtWaitForMultipleEvents(), ACE_Data_Block::~ACE_Data_Block(), ACE_Service_Gestalt::~ACE_Service_Gestalt(), and TSS_Cleanup_Instance::~TSS_Cleanup_Instance().


Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Export 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:58:03 2006 for ACE by doxygen 1.3.6