style: cpp indentation
Gedare Bloom
gedare at rtems.org
Thu May 29 20:47:53 UTC 2014
Hi,
Any guidance on whether we should have a style rule about CPP
directives? Mainly this is for #ifdef #endif guards for conditional
code compilation. There are two options based on what exists in the
cpukit today:
1) Preprocessor directives within indented code should be one nesting
level outside of the affected code.
2) Preprocessor directives within indented code should not be indented.
You can see an example of both, e.g. at
cpukit/score/src/threaddispatch.c:111-132 just to pick one.
-Gedare
More information about the devel
mailing list