Skip to content

Commit

Permalink
[core] Allow custom-defined SRT_ASSERT() function (Haivision#2840).
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandube authored Jan 8, 2024
1 parent 7899f15 commit 88c6214
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srtcore/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,13 @@ modified by
#endif

#ifdef _DEBUG
#if defined(SRT_ENABLE_THREADCHECK)
#include "threadcheck.h"
#define SRT_ASSERT(cond) ASSERT(cond)
#else
#include <assert.h>
#define SRT_ASSERT(cond) assert(cond)
#endif
#else
#define SRT_ASSERT(cond)
#endif
Expand Down

0 comments on commit 88c6214

Please sign in to comment.