[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Adding Preprocessor Symbols to a Project

Sometimes you want to add your own symbol definitions to a project so that the IDE automatically includes them at the beginning of each source-code file when building the project.
The following example shows a custom symbol definition in the C or C++ programming language:
#define GLOBAL_DEBUG
Perhaps you wish to define the GLOBAL_DEBUG symbol only when building development versions of your code, but exclude the definition before shipping your final product.
To achieve this goal, create a precompiled header and insert the symbol definition into the header. See "Using Precompiled or Preprocessed Headers" for more information.
To learn more about this topic, refer to Inside CodeWarrior: C/C++ Tools, Inside CodeWarrior: MSL C Reference, Inside CodeWarrior: C Compilers Reference, and the CodeWarrior targeting documentation.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000