TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Category: Preprocessor

Synopsis:Preprocessor Issues


Description:
This chapter concerns the usage of the preprocessor.

Coding Rules

NameCheckedSynopsis
PRE#001 Checked automatically with code checker Do not define macros instead of constants, enums, or type definitions
PRE#002 Checked automatically with code checker Use parentheses around macro and macro parameters
PRE#003 Be aware of side-effects when using macros
PRE#004 Checked automatically with code checker Do not use the preprocessor directive #define to obtain more efficient code; instead, use inline or template methods/functions