fix invariant check macro

This commit is contained in:
Arvid Norberg 2014-01-23 20:27:15 +00:00
parent 49ad7454d3
commit 1709b48b66
1 changed files with 2 additions and 1 deletions

View File

@ -580,7 +580,8 @@ inline int snprintf(char* buf, int len, char const* fmt, ...)
#endif
#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
#else
#define TORRENT_USE_INVARIANT_CHECKS 0