2013-02-08 18:56:56 +00:00
|
|
|
#version 110
|
|
|
|
|
2013-02-06 00:14:16 +00:00
|
|
|
#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
|
|
|
|
|
2013-05-05 23:46:22 +00:00
|
|
|
#ifndef OFF
|
2013-02-06 00:14:16 +00:00
|
|
|
//yes
|
|
|
|
sum += 600000.0;
|
|
|
|
#else
|
|
|
|
//no
|
|
|
|
sum += 0.6;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(ON) && defined(OFF)
|
|
|
|
//no
|
|
|
|
sum += 0.7;
|
|
|
|
#elif !defined(OFF)
|
|
|
|
//yes
|
|
|
|
sum += 7000000.0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(ON) && !defined(OFF)
|
|
|
|
//yes
|
|
|
|
sum += 80000000.0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(OFF) || defined(ON)
|
|
|
|
//yes
|
|
|
|
sum += 900000000.0;
|
|
|
|
#endif
|
|
|
|
|
2013-05-05 23:46:22 +00:00
|
|
|
#if NEVER_DEFINED
|
|
|
|
//no
|
|
|
|
sum += 0.04;
|
|
|
|
#else
|
|
|
|
sum += 0.05;
|
|
|
|
#endif
|
|
|
|
|
2013-02-06 00:14:16 +00:00
|
|
|
// sum should be 987600301.7
|
|
|
|
gl_Position = vec4(sum);
|
|
|
|
}
|
2013-06-03 04:15:57 +00:00
|
|
|
|
|
|
|
#define A 0
|
|
|
|
#define B 0
|
|
|
|
#define C 0
|
|
|
|
|
|
|
|
#if (A == B) || (A == C)
|
|
|
|
#error good1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if A == B || (A == C)
|
|
|
|
#error good2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (A == B || (A == C))
|
|
|
|
#error good3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (AA == BB) || (AA == CC)
|
|
|
|
#error good4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AA == BB || (AA == CC)
|
|
|
|
#error good5
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ((AA == BB || (AA == CC)))
|
|
|
|
#error good6
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (A == B || (A == C)
|
|
|
|
#error bad1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if A == B || A == C)
|
|
|
|
#error bad2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (A == B || (A == C)
|
|
|
|
#error bad3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AA == BB) || (AA == CC)
|
|
|
|
#error bad4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if AA == BB || (AA == CC
|
|
|
|
#error bad5
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ((AA == BB || (AA == CC))))
|
|
|
|
#error bad6
|
|
|
|
#endif
|
2013-06-13 20:16:43 +00:00
|
|
|
|
2013-06-13 23:56:04 +00:00
|
|
|
int linenumber = __LINE__;
|
|
|
|
int filenumber = __FILE__;
|
|
|
|
int version = __VERSION__;
|
|
|
|
|
2013-07-06 19:54:21 +00:00
|
|
|
#define PI (3.14)
|
|
|
|
#define TWOPI (2.0 * PI)
|
|
|
|
float twoPi = TWOPI;
|
|
|
|
|
2013-06-13 20:16:43 +00:00
|
|
|
#define PASTE(a,b) a ## b
|
|
|
|
float PASTE(tod, ay) = 17;
|