Revert to Current Include Style
[ACE_TAO.git] / ACE / ace / Assert.h
blob33c5a4c258d246dc4cef64095c2ed697690b9286
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Assert.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_ASSERT_H
12 #define ACE_ASSERT_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/ACE_export.h"
18 #include /**/ "ace/config-all.h"
20 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
21 ACE_Export void __ace_assert(const char *file, int line, const ACE_TCHAR *expression);
22 ACE_END_VERSIONED_NAMESPACE_DECL
24 #define ACE_TEST_ASSERT(X) \
25 ((X) \
26 ? static_cast<void>(0) \
27 : ACE_VERSIONED_NAMESPACE_NAME::__ace_assert(__FILE__, __LINE__, ACE_TEXT_CHAR_TO_TCHAR (#X)))
29 #if defined (ACE_NDEBUG)
30 #define ACE_ASSERT(x) \
31 (static_cast<void>(0))
32 #else
33 #define ACE_ASSERT(X) ACE_TEST_ASSERT(X)
34 #endif /* ACE_NDEBUG */
36 #include /**/ "ace/post.h"
38 #endif /* ACE_ASSERT */