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:
Michael Jerris 2007-12-11 17:18:22 +00:00
parent 67c9071f78
commit 71de88d574
1 changed files with 7 additions and 0 deletions

View File

@ -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