glsl/glcpp: Once again report undefined macro name in error message.
authorCarl Worth <cworth@cworth.org>
Fri, 13 Jun 2014 22:16:05 +0000 (15:16 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 9 Jul 2014 19:05:13 +0000 (12:05 -0700)
commitdac3c986c546b674873f217e3137c3bcd25663a7
tree2d18c7abd81ed2e1758174be2ae78df636dbb980
parentec6222ef014ca336e540e13fda423fd9f927feb1
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>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/glcpp.h
src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected