地址线使用下拉,app中也使用断言,线程栈默认填充0x23+pro,malloc失败直接进断言

This commit is contained in:
ranchuan
2023-12-02 11:36:38 +08:00
parent 4a4b37d3f1
commit c4a1d5c088
8 changed files with 39 additions and 16 deletions

View File

@@ -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