diff options
author | Ian Romanick <[email protected]> | 2010-03-11 14:08:33 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-11 14:08:33 -0800 |
commit | 1f585180597290c7891c43dc0da3c9c06d7cebb1 (patch) | |
tree | 9628a03880afbd2fa0c1cac32c6fc7e20cb41067 /glsl_parser_extras.h | |
parent | 3821761e45c455374c9fdb4cd02104f420373360 (diff) |
Track generation of errors and halt compilation appropriately
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r-- | glsl_parser_extras.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h index 1c972623c20..c7cd68c181c 100644 --- a/glsl_parser_extras.h +++ b/glsl_parser_extras.h @@ -41,6 +41,9 @@ struct _mesa_glsl_parse_state { unsigned language_version; enum _mesa_glsl_parser_targets target; + + /** Was there an error during compilation? */ + bool error; }; typedef struct YYLTYPE { @@ -53,7 +56,8 @@ typedef struct YYLTYPE { # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 -extern void _mesa_glsl_error(YYLTYPE *locp, void *state, const char *fmt, ...); +extern void _mesa_glsl_error(YYLTYPE *locp, _mesa_glsl_parse_state *state, + const char *fmt, ...); extern void _mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, const char *string, size_t len); |