mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-29 21:38:22 +08:00
防止release编译时第三方库断言不触发导致的崩溃 (#3617)
This commit is contained in:
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#ifdef assert
|
#ifdef assert
|
||||||
#undef assert
|
#undef assert
|
||||||
#endif//assert
|
#endif//assert
|
||||||
@@ -27,8 +26,5 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define assert(exp) Assert_Throw(!(exp), #exp, __FUNCTION__, __FILE__, __LINE__, NULL)
|
#define assert(exp) Assert_Throw(!(exp), #exp, __FUNCTION__, __FILE__, __LINE__, NULL)
|
||||||
#else
|
|
||||||
#define assert(e) ((void)0)
|
|
||||||
#endif//NDEBUG
|
|
||||||
|
|
||||||
#endif //ZLMEDIAKIT_ASSERT_H
|
#endif //ZLMEDIAKIT_ASSERT_H
|
||||||
|
|||||||
Reference in New Issue
Block a user