提交 e2014029 编写于 作者: G Guillaume Nault 提交者: Dmitry Kozlov

triton: make mempool.h self-contained even when MEMDEBUG is defined

If MEMDEBUG is defined, then we need to include "memdebug.h" to define
'md_free'.
Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
上级 26d64e2c
......@@ -15,6 +15,8 @@ mempool_t *mempool_create2(int size);
struct mempool_stat_t mempool_get_stat(void);
#ifdef MEMDEBUG
#include "memdebug.h"
void *md_mempool_alloc(mempool_t*, const char *fname, int line);
#define mempool_alloc(pool) md_mempool_alloc(pool, __FILE__, __LINE__)
#define mempool_free(ptr) md_free(ptr, __FILE__, __LINE__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册