On Wed, 2011-04-06 at 14:01 +0100, Evan Lavelle wrote: > #define MY_ASSERT(expr) if(!(expr)) BUG()
Make it
#define MY_ASSERT(expr) do { if .... } while(0)
To ensure it has proper single statement semantics in C.
Cheers,
Ben.
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
