summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/60030-UNI-21727.cpp
blob: 991d2631587061a0600e3f3bc8bd75726c8df96e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void foo()
{
    int error = 0;
#if defined(SUPPORT_FEATURE)
    error = feature_bar();
#else // feature not supported
    // we call bar otherwise
    error = bar();
#endif // SUPPORT_FEATURE
    // continue with function logic
    if (error != 0)
    {
#if 0 // TODO: this is disabled
        // call final bar
        error_bar(error);
#endif
    }
}