Assert.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Assert.h
00006  *
00007  *  Assert.h,v 4.4 2006/01/12 19:49:07 jwillemsen Exp
00008  *
00009  *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef ACE_ASSERT_H
00014 #define ACE_ASSERT_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "ace/ACE_export.h"
00019 
00020 #include "ace/config-all.h"
00021 
00022 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00023 ACE_Export void __ace_assert(const char *file, int line, const ACE_TCHAR *expression);
00024 ACE_END_VERSIONED_NAMESPACE_DECL
00025 
00026 #if defined (ACE_NDEBUG)
00027 #define ACE_ASSERT(x) \
00028   (static_cast<void>(0))
00029 #else
00030 #define ACE_ASSERT(X) \
00031   ((X)                                                                  \
00032    ? static_cast<void>(0)                                               \
00033    : ACE_VERSIONED_NAMESPACE_NAME::__ace_assert(__FILE__, __LINE__, ACE_TEXT_CHAR_TO_TCHAR (#X)))
00034 #endif /* ACE_NDEBUG */
00035 
00036 #include /**/ "ace/post.h"
00037 
00038 #endif /* ACE_ASSERT */

Generated on Thu Nov 9 09:41:46 2006 for ACE by doxygen 1.3.6