浏览该文件的文档.
39 #define MEMLEAK_DEBUG_ENABLE 0
40 #define os_free(s) vPortFree(s, "", 0)
41 #define os_malloc(s) pvPortMalloc(s, "", 0)
42 #define os_calloc(s) pvPortCalloc(s, "", 0);
43 #define os_realloc(p, s) pvPortRealloc(p, s, "", 0)
44 #define os_zalloc(s) pvPortZalloc(s, "", 0)
46 #define MEMLEAK_DEBUG_ENABLE 1
50 static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__; \
51 vPortFree(s, mem_debug_file, __LINE__);\
54 #define os_malloc(s) \
56 static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__; \
57 pvPortMalloc(s, mem_debug_file, __LINE__); \
60 #define os_calloc(s) \
62 static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__; \
63 pvPortCalloc(s, mem_debug_file, __LINE__); \
66 #define os_realloc(p, s) \
68 static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__; \
69 pvPortRealloc(p, s, mem_debug_file, __LINE__); \
72 #define os_zalloc(s) \
74 static const char mem_debug_file[] ICACHE_RODATA_ATTR STORE_ATTR = __FILE__; \
75 pvPortZalloc(s, mem_debug_file, __LINE__); \