This question already has an answer here:
Can someone advice what is the difference between isgreater(x,y)
and >
or isless(x,y)
and <
.
My understanding is isless and similar function raise exception (C++).
Which is recommended to use?
#define isgreater(x,y) \
(__extension__ ({__typeof__(x) __x = (x); __typeof__(y) __y = (y); \
!isunordered(__x,__y) && (__x > __y);}))
#define isless(x,y) \
(__extension__ ({__typeof__(x) __x = (x); __typeof__(y) __y = (y); \
!isunordered(__x,__y) && (__x < __y);}))