File: cppIndent.vert

package info (click to toggle)
glslang 16.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,084 kB
  • sloc: cpp: 90,714; yacc: 4,243; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (61 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#version 110

#define ON

float sum = 0.0;

void main()
{

#ifdef ON
//yes
sum += 1.0;
#endif

#ifdef OFF
    //no
    sum += 20.0;
#endif

    #if defined(ON)
    //yes
    sum += 300.0;
    #endif

    #if defined(OFF)
    //no
    sum += 4000.0;
    #endif

		  #if !defined(ON)
		//no
		sum += 50000.0;
		#endif

  	#if !defined(OFF)
		//yes
		sum += 600000.0;
		#endif

    #if defined (ON) && defined               (OFF)         
//no
sum += 7000000.0;
    #endif

#if        defined   (  ON         ) && !        defined(OFF)
//yes
sum += 80000000.0;
#endif

#if defined(OFF) || defined(ON)
//yes
sum += 900000000.0;
#endif

// sum should be 980600301.0
    gl_Position = vec4(sum);
}

#define FUNC(a,b)		a+b
// needs to be last test in file due to syntax error
void foo986(){	FUNC( (((2)))), 4); }  // ERROR, too few arguments )