glsl/glcpp: Once again report undefined macro name in error message.

While writing the previous commit message, I just felt bad documenting the
shortcoming of the change, (that undefined macro names would not be reported
in error messages).

Fix this by preserving the first-encounterd undefined macro name and reporting
that in any resulting error message.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Carl Worth
2014-06-13 15:16:05 -07:00
parent ec6222ef01
commit dac3c986c5
3 changed files with 86 additions and 38 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
typedef struct expression_value {
intmax_t value;
bool has_undefined;
char *undefined_macro;
} expression_value_t;