GCC has a statment expression feature that allows macro to be defined as:
#define maxint(a,b) \
({int _a = (a), _b = (b); _a > _b ? _a : _b; })
This is illegal in Visual Studio.
Is there an equivalent feature in microsoft visual studio?
(I know, I would better use GCC. But I am just curious).
Or, do we just have to resort to inline functions?
There is no equivalent in the MS compiler to this non-standard GCC language extension.