in reply to C code pre-processor
EDIT: I missed the part about not wanting to expand macros in code. Try something like this:
That should hide the macros in code from CPP unless you choose really weird names.$ perl -pe 'y/A-Za-z/N-ZA-Mn-za-m/ unless /^\s*#/' < INPUT | cpp - | \ perl -pe 'y/A-Za-z/N-ZA-Mn-za-m/ unless /^\s*#/ > OUTPUT'
|
|---|