You can use it as a sort of assertion that an expression has arithmetic type:
#define CHECK_ARITHMETIC(x) (+(x))
This will generate a compile-time error if x evaluates to (say) a pointer.
That is about the only practical use I can think of.
You can use it as a sort of assertion that an expression has arithmetic type:
#define CHECK_ARITHMETIC(x) (+(x))
This will generate a compile-time error if x evaluates to (say) a pointer.
That is about the only practical use I can think of.