Added error output to the preprocessor.
This patch distinguishes preprocessing errors with normal parsing errors and gives glslangValidator the ability to output preprocessing errors.
This commit is contained in:
parent
3a194f7ba4
commit
aae1ad8296
21 changed files with 205 additions and 135 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#version 310 es
|
||||
|
||||
#define X
|
||||
#define X 1
|
||||
|
||||
#if X
|
||||
#if Y
|
||||
#ifdef Y
|
||||
#error This should not show up in pp output.
|
||||
#endif
|
||||
#error This should show up in pp output.
|
||||
|
|
@ -11,5 +11,10 @@
|
|||
#error This should not show up in pp output.
|
||||
#endif
|
||||
|
||||
#def X
|
||||
#if Y
|
||||
|
||||
#extension a
|
||||
|
||||
int main() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue