Closed fleupold closed 5 years ago
This change makes it so that conditional macros like:
#define BITS_TO_REPRESENT(n) ((n > 65536) ? 16 : LOG_32768(n))
compile fine, by implementing constant expression evaluation (toInt()) for ConditionalExpression and Binary equivalence operators.
toInt()
ConditionalExpression
Before, we would run into a compilation error:
I don't know how to coerce ConditionalExpression to a constant.
This change makes it so that conditional macros like:
compile fine, by implementing constant expression evaluation (
toInt()
) forConditionalExpression
and Binary equivalence operators.Before, we would run into a compilation error: