diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h index 798f562a65..2293a64dc8 100644 --- a/src/include/switch_platform.h +++ b/src/include/switch_platform.h @@ -69,6 +69,10 @@ SWITCH_BEGIN_EXTERN_C #pragma include_alias(, <../../libs/libteletone/src/libteletone_generate.h>) #pragma include_alias(, <../../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