X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Futil.h;h=b97731b56730936c68077197a60fe6125fa141a4;hp=15c68bc022f0d0e775267ccc03b850ea3abe5026;hb=a6f5add5e9811584ebd75591a6a25cb9686da9a8;hpb=056bca7aee6a336b5418bf2d8ae3dd5a7ca432a2 diff --git a/src/util.h b/src/util.h index 15c68bc0..b97731b5 100644 --- a/src/util.h +++ b/src/util.h @@ -131,6 +131,12 @@ extern void wimlib_warning(const char *format, ...) # define wimlib_assert(expr) #endif +#ifdef ENABLE_MORE_ASSERTIONS +#define wimlib_assert2(expr) wimlib_assert(expr) +#else +#define wimlib_assert2(expr) +#endif + #ifdef ENABLE_CUSTOM_MEMORY_ALLOCATOR extern void *(*wimlib_malloc_func)(size_t);