glcpp: Add an explicit diagnostic for #if with no expression.
authorCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 20:59:22 +0000 (13:59 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 21:38:04 +0000 (14:38 -0700)
commit253cad3f424f71f6984431e5edbde1694ccfae3f
treeb9930838da3da94b060c6589448ab48e129a3c42
parent624dd585c72103e5bffbc600cdf7bdfba5305a15
glcpp: Add an explicit diagnostic for #if with no expression.

This is more clear than the previously-generated diagnostic which was
something confusing like "enexpected newline".

This change makse test 080-if-witout-expression.c now pass.
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/tests/080-if-without-expression.c.expected