Developer Documentation
PATH  Mac OS X Documentation > The GNU C Preprocessor

The GNU C Preprocessor

Previous | Contents | Next

Keeping Deleted Code for Future Reference

If you replace or delete part of the program but want to keep the old code around as a comment for future reference, you can simply put #if 0 before it and #endif after it.

This works even if the code being turned off contains conditionals, but they must be entire conditionals (balanced #if and #endif ).


The GNU C Preprocessor

Previous | Contents | Next