00001
00002
00003
00004
00005
00006
00007
00019 #ifndef OSCL_ASSERT_H_INCLUDED
00020 #define OSCL_ASSERT_H_INCLUDED
00021
00022 #ifndef OSCL_BASE_H_INCLUDED
00023 #include "oscl_base.h"
00024 #endif
00025
00026
00028
00030 OSCL_COND_IMPORT_REF void _OSCL_Abort();
00031
00033
00038 #if (!defined(NDEBUG) || (OSCL_ASSERT_ALWAYS))
00039 OSCL_IMPORT_REF void OSCL_Assert(const char *expr, const char *filename, int line_number);
00040
00041 #define OSCL_ASSERT(_expr) \
00042 ((_expr)?((void)0):OSCL_Assert(# _expr,__FILE__,__LINE__))
00043
00044 #else
00045 #define OSCL_ASSERT(_expr) ((void)0)
00046 #endif
00047
00048 #if (!OSCL_DISABLE_INLINES)
00049 #include "oscl_assert.inl"
00050 #endif
00051
00054 #endif // OSCL_ASSERT_H_INCLUDED