编程技巧
文章平均质量分 78
linpeng1577
厚德载物,宁静致远
Linux内核爱好者
展开
-
使用宏定义方式进行非法指针判定-嵌入式C
#include #include // test parameters for level 2nd #define AUDIO_DEVICE_ID (0x9527) #define AUDIO_NAME_MAX (20) typedef struct { int id; char name[AUDIO_NAME_MAX+1]; } audio_t, *a原创 2014-10-31 15:54:08 · 1353 阅读 · 0 评论 -
断言:利用ASSERT宏定位软件bug
/* *Author : DavidLin *Date : 2014-12-26pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver原创 2014-12-27 21:01:19 · 626 阅读 · 0 评论