Darwin malloc_size override support proposal.
Darwin has similar api than Linux/FreeBSD's malloc_usable_size.
This commit is contained in:
@@ -132,6 +132,11 @@ static const bool config_debug =
|
||||
#define MEXP 19937
|
||||
#include "test/SFMT.h"
|
||||
|
||||
#ifndef JEMALLOC_HAVE_MALLOC_SIZE
|
||||
#define TEST_MALLOC_SIZE malloc_usable_size
|
||||
#else
|
||||
#define TEST_MALLOC_SIZE malloc_size
|
||||
#endif
|
||||
/******************************************************************************/
|
||||
/*
|
||||
* Define always-enabled assertion macros, so that test assertions execute even
|
||||
|
Reference in New Issue
Block a user