phao/XError

Copy/paste error leads to bad macro?

Closed this issue · 1 comments

aghast commented

XError/XError.h

Line 123 in d2bb523

#define PErrIf0(EXPR) ErrIf0(COND, VAL, 0)

I suspect the macro has the wrong parameters, and the expansion is actually correct.

phao commented

You are completely right.

But, man... it has been so long since I last looked these things.

I believe the right macro definition should be:

#define PErrIf0(COND, VAL) ErrIf0(COND, VAL, 0)