Hacker News new | ask | show | jobs
by leni536 2432 days ago
Note that lambda expressions are not allowed in an unevaluated context. What about this?

   #define MY_ASSERT(expr) do {} while (false && ((expr), false))
This doesn't require expr to be convertible to bool.
1 comments

Actually, the argument of MY_ASSERT should always be convertible to bool, even in release mode.