summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/disable_macro.cpp
blob: cb9fc3076c2ab41f624dbb7fb017c01184e51e8d (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
#include <stdio.h>

// this macro should NOT be modified ...
#define CHK(...)   \
  do               \
  {                \
      a+=1;        \
        a=b=0;     \
          c<<1;    \
  } while (0+0)


// ... whereas this should be indented and formatted
int main()
{
	int a,b,c=0;
	if (a<c)
	{
	c+=1;
	}
	a=b=0;
	c<<1;
	CHK;
}