[fpc-pascal] undefining multiple defines

Jeff Miller miller at psy.otago.ac.nz
Thu Mar 3 00:56:24 CET 2005


> I'm using several defines like this:
> 
> {$define M1}
> { $define M2}
> { $define M3}
> { $define M4}
> 
> Any time I have to change them, I have to touch all one by one, because
> they're mutually exclusive.
> 
> Or a better basic approach? 

Maybe I am missing something, but why not just have a single define statement, which you change to 
define the one symbol that you want for the current compile? If they are mutually exclusive, you 
never need more than one define, right?

Jeff

miller at psy.otago.ac.nz






More information about the fpc-pascal mailing list