|
|
@@ -375,9 +375,15 @@ control_line: |
|
|
|
_glcpp_parser_skip_stack_pop (parser, & @1); |
|
|
|
} NEWLINE |
|
|
|
| HASH_VERSION integer_constant NEWLINE { |
|
|
|
if (parser->version_resolved) { |
|
|
|
glcpp_error(& @1, parser, "#version must appear on the first line"); |
|
|
|
} |
|
|
|
_glcpp_parser_handle_version_declaration(parser, $2, NULL, true); |
|
|
|
} |
|
|
|
| HASH_VERSION integer_constant IDENTIFIER NEWLINE { |
|
|
|
if (parser->version_resolved) { |
|
|
|
glcpp_error(& @1, parser, "#version must appear on the first line"); |
|
|
|
} |
|
|
|
_glcpp_parser_handle_version_declaration(parser, $2, $3, true); |
|
|
|
} |
|
|
|
| HASH NEWLINE { |