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

// Example for preprocessor statement in a function definition
// Config uses more than tested option, uses:
// pp_if_indent_code = 1 to enable preprocesser indent
// pp_indent_brace = 0 to override preprocessor indent for braces
MyClass::MyClass()
{
if(isSomething)
{
DoSomething();
}
#if (USE_FIVE)
{
DoSomethingAlso();
}
#endif
#if (USE_SIX)
{
Six mySix;
DoSomethingWithSix(mySix);
}
#endif
}