2 ms·
I’m not up to date on GCC macros, so I’m not familiar with this syntax: #define __cmp_once(x, y, op) ({ \ typeof(x) __x = (x); \ typeof(y)
by krallja 9y ago
I’m not up to date on GCC macros, so I’m not familiar with this syntax:
#define __cmp_once(x, y, op) ({ \
typeof(x) __x = (x); \
typeof(y) __y = (y); \
__cmp(__x, __y, op); })
Is that a block-expression, or what?
- krallja 9y agoOk, I found the doc for GCC Statement Expressions. Seems very Ruby-like. https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html