Make the PP report an error on undefined macro in "#if ..." for ES profiles, unless relaxed error checking is requested. Still works as normal CPP on non-ES.
Also, improved error reporting in general for the PP. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21417 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
@@ -32,7 +32,7 @@ sum += 4000.0;
|
||||
sum += 50000.0;
|
||||
#endif
|
||||
|
||||
#ifndef(OFF)
|
||||
#ifndef OFF
|
||||
//yes
|
||||
sum += 600000.0;
|
||||
#else
|
||||
@@ -58,6 +58,13 @@ sum += 80000000.0;
|
||||
sum += 900000000.0;
|
||||
#endif
|
||||
|
||||
#if NEVER_DEFINED
|
||||
//no
|
||||
sum += 0.04;
|
||||
#else
|
||||
sum += 0.05;
|
||||
#endif
|
||||
|
||||
// sum should be 987600301.7
|
||||
gl_Position = vec4(sum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user