[LLVMdev] Proposal for better assertions in LLVM

FlyLanguage flylanguage at gmail.com
Tue Jul 26 10:56:48 PDT 2011


>    #define ASSERT_STRM(cond, args) \
>      if (!(cond)) AssertionFailureStream(__FILE__, __LINE__) << args
>
> Note that there's no trailing semicolon, as this is supplied at the
> point where the macro is invoked.
>
> What do you think?

Neat, but inducing a debug trap is even more useful on asserts (optionally).



More information about the llvm-dev mailing list