 aae1ad8296
			
		
	
	
		aae1ad8296
		
	
	
	
	
		
			
			This patch distinguishes preprocessing errors with normal parsing errors and gives glslangValidator the ability to output preprocessing errors.
		
			
				
	
	
		
			21 lines
		
	
	
		
			274 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			274 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| #version 310 es
 | |
| 
 | |
| #define X 1
 | |
| 
 | |
| #if X
 | |
|   #ifdef Y
 | |
|     #error This should not show up in pp output.
 | |
|   #endif
 | |
|     #error This should show up in pp output.
 | |
| #else
 | |
|   #error This should not show up in pp output.
 | |
| #endif
 | |
| 
 | |
| #def X
 | |
| #if Y
 | |
| 
 | |
| #extension a
 | |
| 
 | |
| int main() {
 | |
| }
 |