fix invariant check macro
This commit is contained in:
parent
49ad7454d3
commit
1709b48b66
|
@ -580,7 +580,8 @@ inline int snprintf(char* buf, int len, char const* fmt, ...)
|
||||||
#endif
|
#endif
|
||||||
#endif // TORRENT_USE_ASSERTS
|
#endif // TORRENT_USE_ASSERTS
|
||||||
|
|
||||||
#if TORRENT_USE_ASSERTS && !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
#if defined TORRENT_DEBUG && TORRENT_USE_ASSERTS \
|
||||||
|
&& !defined TORRENT_DISABLE_INVARIANT_CHECKS
|
||||||
#define TORRENT_USE_INVARIANT_CHECKS 1
|
#define TORRENT_USE_INVARIANT_CHECKS 1
|
||||||
#else
|
#else
|
||||||
#define TORRENT_USE_INVARIANT_CHECKS 0
|
#define TORRENT_USE_INVARIANT_CHECKS 0
|
||||||
|
|
Loading…
Reference in New Issue