
unix/linux编程
hylin2009
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
初识typeof
/* * min()/max() macros that also do * strict type-checking.. See the * "unnecessary" pointer comparison. */#define min(x,y) ({ / const typeof(x) _x = (x); / const typeof(y) _y = (y); / (void) (&_x ==原创 2009-08-31 10:17:00 · 487 阅读 · 0 评论 -
linux内核中的MAX MIN宏
/* * min()/max() macros that also do * strict type-checking.. See the * "unnecessary" pointer comparison. */ #define min(x,y) ({ typeof(x) _x = (x); typeof(y) _y = (y); (void) (&_x == &_y); _x转载 2009-09-01 08:32:00 · 853 阅读 · 0 评论