diff options
Diffstat (limited to 'PACE/pace/assert.h')
-rw-r--r-- | PACE/pace/assert.h | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/PACE/pace/assert.h b/PACE/pace/assert.h index cbfc942fb00..d5b2099f046 100644 --- a/PACE/pace/assert.h +++ b/PACE/pace/assert.h @@ -13,20 +13,42 @@ * * =========================================================================== */ -#ifndef PACE_ASSERT_H_INDIRECT -#define PACE_ASSERT_H_INDIRECT +#ifndef PACE_ASSERT_H +#define PACE_ASSERT_H #include "pace/config/defines.h" -#if defined (PACE_HAS_POSIX) +#if (PACE_HAS_POSIX) # include "pace/posix/assert.h" -#elif defined (PACE_VXWORKS) +#elif (PACE_VXWORKS) # include "pace/vxworks/assert.h" -#elif defined (PACE_WIN32) +#elif (PACE_WIN32) # include "pace/win32/assert.h" #endif -#endif /* PACE_ASSERT_H_INDIRECT */ - - - +#if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +#endif /* PACE_HAS_CPLUSPLUS */ + + /** + PACE's implementation of the POSIX macro assert. + See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; + IEEE Std 1003.1, 1996 Edition), Section 8.1. + */ + PACE_INLINE void pace_assert (int expression); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +#if defined (PACE_HAS_INLINE) +# if (PACE_HAS_POSIX) +# include "pace/posix/assert.inl" +# elif (PACE_VXWORKS) +# include "pace/vxworks/assert.inl" +# elif (PACE_WIN32) +# include "pace/win32/assert.inl" +# endif +#endif /* PACE_HAS_INLINE */ + +#endif /* PACE_ASSERT_H */ |