I have realized that I use a #define'd system for configuration, the thing that's weird, is I have two of these flags in common with nearly every project I make..
one is
"LOW_MEMORY" which when defined will attempt to conserve memory at all costs
and then I got "SPEED_UP" which when defined will use potentially unsafe optimizations; also, it will attempt to do more caching and will optimize for CPU time fastness...this bascially doesn't go along with LOW_MEMORY, but anyway...
does anyone else do things this way for every project?
Do you use a type of define'd flag system for your projects?
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
DEBUG is quite common, Using defines for portability is also helpful..
Notably being able to add OS specific patches.. or workarounds for compiler versions etc..
Here is a handy site to find some common defines
http://predef.sourceforge.net/
Autoconf is one viable way to check what is and what is not available on a specific system..
Notably being able to add OS specific patches.. or workarounds for compiler versions etc..
Here is a handy site to find some common defines
http://predef.sourceforge.net/
Autoconf is one viable way to check what is and what is not available on a specific system..