This patch is to rename check CHECK and make it a C macro, so that
we can evaluate the second argument lazily.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 12831 Build 12831: arc lint + arc unit
Event Timeline
lld/include/lld/Common/ErrorHandler.h | ||
---|---|---|
117 | Perhaps it would be better to support only the two-argument form via the CHECK macro? That would not only simplify the macro definition, but also if I look at a check call with a single argument, I can tell from the name that it is just a straightforward function call. |
lld/include/lld/Common/ErrorHandler.h | ||
---|---|---|
117 | Yeah that probably makes more sense. I thought that this macro isn't that bad, but we should avoid this sort of hack. |
Perhaps it would be better to support only the two-argument form via the CHECK macro? That would not only simplify the macro definition, but also if I look at a check call with a single argument, I can tell from the name that it is just a straightforward function call.