地址线使用下拉,app中也使用断言,线程栈默认填充0x23+pro,malloc失败直接进断言
This commit is contained in:
@@ -176,16 +176,16 @@ void param_err_handle(const char *param,const char *file,const char *fun,int lin
|
||||
void cpy4byte(uint32_t *dst,uint32_t *src,int num_4byte);
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
//#ifdef DEBUG
|
||||
// 如果s==0,则打印
|
||||
#define param_check(s) \
|
||||
if((s)==0){\
|
||||
param_err_handle(#s,__FILE__,__func__,__LINE__);}
|
||||
#else
|
||||
//#else
|
||||
|
||||
#define param_check(s)
|
||||
//#define param_check(s)
|
||||
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
#ifdef RT_THREAD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user