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; })
相關文章
相關標籤/搜索