add macro for assert to satisfy the code analysis tools.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6651 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
67c9071f78
commit
71de88d574
|
@ -69,6 +69,10 @@ SWITCH_BEGIN_EXTERN_C
|
|||
#pragma include_alias(<libteletone_generate.h>, <../../libs/libteletone/src/libteletone_generate.h>)
|
||||
#pragma include_alias(<libteletone_detect.h>, <../../libs/libteletone/src/libteletone_detect.h>)
|
||||
|
||||
#if (_MSC_VER >= 1500) // VC8+
|
||||
#define switch_assert(expr) assert(expr);__analysis_assume( expr )
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER >= 1400) // VC8+
|
||||
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||
#define _CRT_SECURE_NO_DEPRECATE
|
||||
|
@ -285,6 +289,9 @@ SWITCH_END_EXTERN_C
|
|||
#ifndef TRUE
|
||||
#define TRUE (!FALSE)
|
||||
#endif
|
||||
#ifndef switch_assert
|
||||
#define switch_assert(expr) assert(expr)
|
||||
#endif
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
|
Loading…
Reference in New Issue