fix: fix backtrace check issue

fix issue that when memleak check is enabled, backtace is not enabled

close https://gitee.com/openharmony/kernel_liteos_m/issues/I3VTKD

Signed-off-by: rtos-lover <zhushangyuan@hotmail.com>
This commit is contained in:
rtos-lover 2021-06-16 17:04:26 +08:00
parent 468ce69f27
commit b6664e66f1
1 changed files with 3 additions and 2 deletions

View File

@ -463,9 +463,10 @@ extern UINT8 *m_aucSysMem0;
*/
#ifndef LOSCFG_MEM_LEAKCHECK
#define LOSCFG_MEM_LEAKCHECK 0
#if (LOSCFG_BACKTRACE_TYPE == 0)
#error "Backtrace module should be enabled by setting LOSCFG_BACKTRACE_TYPE to not 0 in target_config.h"
#endif
#if (LOSCFG_MEM_LEAKCHECK == 1) && (LOSCFG_BACKTRACE_TYPE == 0)
#error "if LOSCFG_MEM_LEAKCHECK is set to 1, then LOSCFG_BACKTRACE_TYPE must be set to 1, 2 or 3."
#endif
/**