C++ style guide: Difference between revisions

346 bytes added ,  21 December 2023
m
Line 84: Line 84:
   }
   }
</syntaxhighlight>
</syntaxhighlight>
==== #ifdef directives ====
Indent code that follows a conditional processor directive such as {{codeline|#ifdef}} or {{codeline|else}}.
Example
<syntaxhighlight lang="cpp">
#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif
</syntaxhighlight>
The '#' character may also be placed with the directive rather than remaining in column 1.


==== Split long expressions ====
==== Split long expressions ====
1,072

edits