You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
444 B
25 lines
444 B
4 years ago
|
// Example for preprocessor statement in a function definition
|
||
|
// Config uses more than tested option, uses:
|
||
2 years ago
|
// pp_if_indent_code = 1 to enable preprocesser indent
|
||
|
// pp_indent_brace = 0 to override preprocessor indent for braces
|
||
4 years ago
|
MyClass::MyClass()
|
||
|
{
|
||
|
if(isSomething)
|
||
|
{
|
||
|
DoSomething();
|
||
|
}
|
||
|
|
||
|
#if (USE_FIVE)
|
||
|
{
|
||
|
DoSomethingAlso();
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#if (USE_SIX)
|
||
|
{
|
||
|
Six mySix;
|
||
|
DoSomethingWithSix(mySix);
|
||
|
}
|
||
|
#endif
|
||
2 years ago
|
}
|