I don't know about PM but if you're using MPASM I think it does what you're looking for. Have a look at the help file for MPASM, hlpMPASMAsm.chm, located in you MPASM suite folder. Specifically #define, ifdef and ifndef.