On Tue, 11 Mar 2008, sergio masci wrote: > I must be dense. Why not just use a compound statement > > e.g. > #define CHECK_ERR { \ > errcode = get_error(); \ > if (errcode) { \ > print_error(errcode) \ > } \ > } if (condition) CHECK_ERR; else something(); will give you a syntax error, because you have a semicolon between the macro's closing brace and the "else". -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist