Is there a way in code warrior to set an enviroment setting that can be controled independatntly of the Release/Debug setting?
For example, can I define boolean vairable in the compiler that be accessed by the code? That way I can change what code gets compiled in without actually changing the code.
This is what prefix files are for. They get included in every compile before the source text is written, and you can #define whatever you want. If you use a prefix file, you might want to make the first line #include whatever was the old prefix so you'll pull in the appropriate precompiled headers.
To do what you want, you can use #ifdef with a defined symbol, or just say something like
const bool myBooleanFlag = true;
if you're building C++ code.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
