Comment Comment by thetic > #define sizeof(x) (size)sizeof(x)Undefined behavior[1]> #define assert(c) while (!(c)) __builtin_unreachable()Undefined behavior[1]> I’ll cast away the const if needed.Undefined behavior[2]> The assignments are separated by sequence points, giving them an explicit order.I don't believe assignments are sequence points and only the function call is.[1] https://en.cppreference.com/w/c/language/identifier#Reserved...[2] https://en.cppreference.com/w/c/language/const parent thetic 3 years ago
Undefined behavior[1]
> #define assert(c) while (!(c)) __builtin_unreachable()
Undefined behavior[1]
> I’ll cast away the const if needed.
Undefined behavior[2]
> The assignments are separated by sequence points, giving them an explicit order.
I don't believe assignments are sequence points and only the function call is.
[1] https://en.cppreference.com/w/c/language/identifier#Reserved...
[2] https://en.cppreference.com/w/c/language/const