thoth@tellab2.UUCP (Marcus Hall) (10/16/84)
>>The best and most widely accepted way to prevent a block of code from >>being compiled while still leaving the code in the file is as follows: >> >>#ifdef notdef > >But what if notdef is defined? Clearly, you want > >#ifdef notdef >#ifndef notdef > code code code code /* but I don't like code! */ wonderfull code >#endif >#endif > >This will always work! :-) Slightly simpler is: #if 0 code code code code /* but I don't like code! */ wonderfull code #endif marcus hall ..!ihnp4!tellab1!tellab2!thoth -- marcus hall ..!ihnp4!tellab1!tellab2!thoth
rlh@mit-eddie.UUCP (Roger L. Hale) (10/19/84)
>#ifdef notdef > code code code code /* but I don't like code! */ wonderfull code >#endif Note that if, following another suggestion, I put /*'s in front of each line, and a final */, [* hey, what does he mean by ``i put ,'' *<8*] /* ... /* code code code code /* but I don't like code! */ wonderfull code /* ... */ then I am left with wonderfull code Another automatic commenter bites the dust. YOW! Roger Hale ..!decvax!genrad!mit-eddie!rlh