![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 453 阅读 · 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 · 808 阅读 · 0 评论