diff --git a/src/ds/defines.h b/src/ds/defines.h index 0237657..2638958 100644 --- a/src/ds/defines.h +++ b/src/ds/defines.h @@ -32,11 +32,12 @@ namespace snmalloc { + // Forwards reference so that the platform can define how to handle errors. void error(const char* const str); } // namespace snmalloc #ifdef NDEBUG -# define SNMALLOC_ASSERT(expr) ((void 0)) +# define SNMALLOC_ASSERT(expr) { } #else # define SNMALLOC_ASSERT(expr) \ { \ diff --git a/src/pal/pal_consts.h b/src/pal/pal_consts.h index 3d2bb5f..a86feb5 100644 --- a/src/pal/pal_consts.h +++ b/src/pal/pal_consts.h @@ -116,4 +116,4 @@ namespace snmalloc } } }; -} // namespace snmalloc \ No newline at end of file +} // namespace snmalloc