> Perhaps there's a reason for doing this that escapes me though.

If you have /* */s in the cuntion already, the */ will terminate the block
function and force you to go back and add more /*s, which is a pain. Take
this for example:

doBlah(vec1, vec2);
/* Commented...
  doBlah2(vec2, vec3, length);
*/
doBlah3(length);

If you wanted to get rid of this whole block by commenting it out with /*
*/, VC will interpret the end of the comment at the first */, leaving
doBlah3 to possibly wreak havoc. With #if 0, the block is removed by the
preprocessor and there's no chance of comments mucking it up.

-James "Corvidae" Williams ([EMAIL PROTECTED])
Administrator, Wavelength Forums (http://www.planethalflife.com/wavelength)
Co-Leader / Coder, Underhive (http://www.underhive.com)

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to