Assert.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Assert.h
00006  *
00007  *  $Id: Assert.h 80826 2008-03-04 14:51:23Z wotte $
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 Tue Feb 2 17:18:38 2010 for ACE by  doxygen 1.4.7