Hacker News new | ask | show | jobs
by ryanpetrich 5462 days ago
Another useful GCC extension is statements within expressions:

#define max(a,b) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a > _b ? _a : _b; })