Jens Kilian wrote:
On Wednesday 08 October 2008, Richard Harvey Chapman wrote:#define BREAK_ON_ERROR(i) \ if (1) \ { \ if (i < 0) \ break; \ } \ else do \ { \ } while (0) \How about #define BREAK_ON_ERROR(i) if ((i) >= 0) { /* whee! */ } else break
You'll still get the "ambiguous else" warning. Harvey