Apply suggestions from code review

This commit is contained in:
Matthew Parkinson
2020-03-04 17:44:54 +00:00
committed by GitHub
parent acbcbce597
commit 9dc689762c
2 changed files with 3 additions and 2 deletions

View File

@@ -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) \
{ \

View File

@@ -116,4 +116,4 @@ namespace snmalloc
}
}
};
} // namespace snmalloc
} // namespace snmalloc