mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 00:40:38 +00:00
test/btstack_memory_test: fix malloc test (regression)
This commit is contained in:
parent
caab56b09e
commit
e3c90686fb
@ -55,6 +55,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_MALLOC_TEST
|
||||||
|
extern "C" void * test_malloc(size_t size);
|
||||||
|
#define malloc test_malloc
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC
|
#ifdef HAVE_MALLOC
|
||||||
typedef struct btstack_memory_buffer {
|
typedef struct btstack_memory_buffer {
|
||||||
struct btstack_memory_buffer * next;
|
struct btstack_memory_buffer * next;
|
||||||
|
@ -134,6 +134,11 @@ cfile_header_begin = """
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef ENABLE_MALLOC_TEST
|
||||||
|
extern "C" void * test_malloc(size_t size);
|
||||||
|
#define malloc test_malloc
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MALLOC
|
#ifdef HAVE_MALLOC
|
||||||
typedef struct btstack_memory_buffer {
|
typedef struct btstack_memory_buffer {
|
||||||
struct btstack_memory_buffer * next;
|
struct btstack_memory_buffer * next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user