check debug_malloc_implementation_space via COMPILE_ASSERT

Because we can and because compile-time is always better.
This commit is contained in:
Aliaksey Kandratsenka 2014-01-19 12:30:53 -08:00
parent 54568e32fc
commit 71a239e559

View File

@ -1083,8 +1083,8 @@ static union {
REGISTER_MODULE_INITIALIZER(debugallocation, {
#if (__cplusplus >= 201103L)
RAW_CHECK(alignof(debug_malloc_implementation_space) >= alignof(DebugMallocImplementation),
"debug_malloc_implementation_space is not properly aligned");
COMPILE_ASSERT(alignof(debug_malloc_implementation_space) >= alignof(DebugMallocImplementation),
debug_malloc_implementation_space_is_not_properly_aligned);
#endif
// Either we or valgrind will control memory management. We
// register our extension if we're the winner. Otherwise let