C++ style guide: Difference between revisions

Jump to navigation Jump to search
22 bytes added ,  21 December 2023
m
Line 87: Line 87:
==== #ifdef directives ====
==== #ifdef directives ====


Indent code that follows a conditional processor directive such as {{codeline|#ifdef}} or {{codeline|else}}.
Indent code that follows a conditional processor directive such as {{codeline|#ifdef}} or {{codeline|#else}}.


Example
Example
Line 97: Line 97:
</syntaxhighlight>
</syntaxhighlight>


The '#' character may also be placed with the directive rather than remaining in column 1.
The '#' character may also be placed with the directive rather than remaining in column 1 if this looks better.


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

edits

Navigation menu