Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CompilerSwitches.h

Go to the documentation of this file.
00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // CompilerSwitches.h 00005 // 00006 // Version 1.0 00007 // Date 18.04.03 00008 // Author A. Pasetti (P&P Software) 00009 // 00010 // Change Record: 00011 00021 #ifndef CompilerSwitchesH 00022 #define CompilerSwitchesH 00023 00024 // The NDEBUG symbol controls whether assertions are switched on or off 00025 // under the Borland C++Builder. If the variable is defined, then assertions 00026 // are switched off. If it is not defined, then assertions are switched on. 00027 // #undef NDEBUG // assertions are switched on 00028 #define NDEBUG // assertions are switched off 00029 00030 // The USE_SYSTEM_ASSERT symbol controls whether the assert() macro defined in 00031 // the system-wide header file <code>assert.h</code> or the one defined in <code>DebugSupport.h</code> is used. 00032 // If the symbol is defined, the definition in <code>assert.h</code> is taken. 00033 // Otherwise the definition in <code>DebugSupport.h</code> is used. 00034 #define USE_SYSTEM_ASSERT 00035 // #undef USE_SYSTEM_ASSERT 00036 00037 // Must be defined only if Simulink(TM) is available 00038 // #define HAVE_SIMULINK 00039 #undef HAVE_SIMULINK 00040 00041 // This pragma disables warnings that are in effect when the W4 warning 00042 // level on the VS compiler are enabled (this is not the default) 00043 // The following warnings are disabled: 00044 // 4061: enumeration constant in switch is not explicitly handled by a case label 00045 // 4100: unreferenced formal parameter (this triggers whenever trivial 00046 // definitions are given for methods that are to be overridden in 00047 // subclasses) 00048 // 4511: copy constructor could not be generated (copy constructors 00049 // must not be generated in the OBS Framework) 00050 // 4512: assignment operator could not be generated (assignment operators 00051 // must not be generated in the OBS Framework) 00052 #pragma warning( disable : 4100 4511 4512 4061 ) 00053 00054 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved