程序
文章平均质量分 64
lcz997170576
这个作者很懒,什么都没留下…
展开
-
GNU 语句表达式
GNU C把含在括号内的复合语句看成一个表达式,称为语句表达式。#define min_t(x, y) \ ({ \ const typeof(x) __x = (x); \ const typeof(y) __y = (y); \ (void) (&__x == &__y); \ __x < __...原创 2019-01-17 20:18:43 · 411 阅读 · 0 评论 -
为什么用 do{...}while(0)
@[TOC]为什么用 do{…}while(0)在linux中有很多地方用到了do{...}while(0),看起来没什么意义,起始这个主要用在宏定义中。例: #define FREE_PTR(p) do{free(p); p=NULL;}while(0) #define FREE_PTR(p) free(p); p=NULL; if(NULL !=p) FREE_P...原创 2019-01-16 10:59:23 · 140 阅读 · 0 评论 -
关于The connected J-Link is defective,Proper operation cannot be guaranteed.....
关于The connected J-Link is defective,Proper operation cannot be guaranteeddebug的时候出现上面的现象是因为keil的jlink驱动和jlink的固件驱动不匹配造成的。欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细...原创 2019-04-14 16:46:29 · 723 阅读 · 0 评论