blob: 4900fa34d9ddd6cd17c3b521663b7972eef855a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Example for preprocessor statement in a function definition
// Config uses more than tested option, uses:
// pp_if_indent_code = true to enable preprocesser indent
// pp_indent_brace = false to override preprocessor indent for braces
MyClass::MyClass()
{
if(isSomething)
{
DoSomething();
}
#if (USE_FIVE)
{
DoSomethingAlso();
}
#endif
#if (USE_SIX)
{
Six mySix;
DoSomethingWithSix(mySix);
}
#endif
}
|