Skip to content

Commit

Permalink
修复release alert编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyfcu committed Dec 10, 2024
1 parent 8ec3028 commit 9ce3d83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 3rdpart/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ce3d83

Please sign in to comment.