Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22006

isless vs < or isgreater vs > [duplicate]

$
0
0

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);}))

Viewing all articles
Browse latest Browse all 22006

Trending Articles