From: Kenneth Graunke Date: Wed, 16 Jun 2010 19:41:37 +0000 (-0700) Subject: glcpp: Complain about unrecognized directives. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=739ba06680c762ff0a2e93027fefe0ab84ab6adc;p=mesa.git glcpp: Complain about unrecognized directives. --- diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y index f9fab8bf293..fde9b92edec 100644 --- a/glcpp/glcpp-parse.y +++ b/glcpp/glcpp-parse.y @@ -360,7 +360,9 @@ text_line: ; non_directive: - pp_tokens NEWLINE + pp_tokens NEWLINE { + yyerror (parser, "Invalid tokens after #"); + } ; replacement_list: