On Mon, Aug 24, 2009 at 5:25 PM, M. Adam Davis wrote: > I love how we're sitting around thinking about the most evil way to > utterly break someone's code in a non-obvious fashion. > > This is hilarious! > > So now we've got either > > #define while if > #define continue > #define break > > or > > #define if while > #define else > > The problem with the first is that it would break many more things > than intended, as it would also affect for loops and switch > statements. =A0I like that the program would continue to run, though - > it wouldn't enter an infinite loop inside an if statement. > > The second very narrowly targets if statements, but would be easier to > catch as the program would likely stall inside the first if statement > that evaluates to true. go for random failure: #define if(x) if ((x) & PORTA) -- = Mark Rages, Engineer Midwest Telecine LLC markrages@midwesttelecine.com -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist