feat(sdk): Midify "__FILE__" to "__ESP_FILE__" for some components

This commit is contained in:
Dong Heng
2018-09-21 12:07:10 +08:00
parent 8f21fea94e
commit 54cd3f4b61
9 changed files with 18 additions and 18 deletions

View File

@ -214,7 +214,7 @@ void show_critical_info(void);
* @brief add trace information to allocated memory
*
* @param ptr memory pointer allocated by "os_maloc", "malloc" and so on
* @param trace trace information, file name(__FILE__) or "__builtin_return_address(0)" is OK
* @param trace trace information, file name(__ESP_FILE__) or "__builtin_return_address(0)" is OK
* @param no number of trace information, file line(__LINE__) or -1(using "__builtin_return_address(0)")
*/
void esp_mem_trace(const void *ptr, const char *trace, int no);
@ -224,7 +224,7 @@ void esp_mem_trace(const void *ptr, const char *trace, int no);
*
* @param ptr memory pointer allocated by "os_maloc", "malloc" and so on
*/
#define esp_mem_mark_file(ptr) esp_mem_trace((ptr), __FILE__, LINE__)
#define esp_mem_mark_file(ptr) esp_mem_trace((ptr), __ESP_FILE__, LINE__)
/*
* @brief check if CPU core interrupt is disable