glcpp: Make undefined macros illegal in #if and #elif for GLES3
authorCarl Worth <cworth@cworth.org>
Mon, 26 Nov 2012 23:00:05 +0000 (15:00 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Jan 2013 18:57:25 +0000 (10:57 -0800)
commit93e719ba4da7c45cdddd276060acbcc1a4edceda
treef45b7d6947776b9479237c8ba22cb134ac2887cb
parent77e1bc9f1db315c68d6fd8c1441a678d33ca4db2
glcpp: Make undefined macros illegal in #if and #elif for GLES3

Simply emitting a nicely-formatted error message if any undefined macro is
encountered in a parser context expecting an expression.

With this commit, the following piglit test now passes:

spec/glsl-es-3.00/compiler/undefined-macro.vert

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glcpp/glcpp-parse.y