From aeb2f910c1272e9d0b2eff0d15082407526ad8dd Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 30 May 2020 13:52:09 +0800 Subject: [PATCH] =?UTF-8?q?release=E7=BC=96=E8=AF=91=E6=97=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dassert=E5=AE=8F=E7=9B=B8=E5=85=B3=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/assert.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3rdpart/assert.h b/3rdpart/assert.h index 37ba8324..efb2224f 100644 --- a/3rdpart/assert.h +++ b/3rdpart/assert.h @@ -26,6 +26,8 @@ #endif #define assert(exp) Assert_Throw(!(exp), #exp, __FUNCTION__, __FILE__, __LINE__); +#else + #define assert(e) ((void)0) #endif//NDEBUG #endif //ZLMEDIAKIT_ASSERT_H