From 9ce3d83bdc382a530edd8f62d7c230957aac990a Mon Sep 17 00:00:00 2001 From: baiyfcu Date: Wed, 11 Dec 2024 03:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drelease=20alert=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/assert.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3rdpart/assert.h b/3rdpart/assert.h index 95aa6378e4..ee8a6fada5 100644 --- a/3rdpart/assert.h +++ b/3rdpart/assert.h @@ -25,6 +25,10 @@ extern void Assert_Throw(int failed, const char *exp, const char *func, const ch } #endif +#ifdef NDEBUG +#define assert(exp) ((void)0) +#else #define assert(exp) Assert_Throw(!(exp), #exp, __FUNCTION__, __FILE__, __LINE__, NULL) +#endif #endif //ZLMEDIAKIT_ASSERT_H