GCC中MAX和MIN的安全定义

#define MAX(a,b) ({ typeof(a) _a = (a); typeof(b) _b = (b); \ _a > _b ? _a : _b; }) #define MIN(a,b) ({ typeof(a) _a = (a); typeof(b) _b = (b); \ _a < _b ? _a : _b; })
相关文章
相关标签/搜索