summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 14:47:46 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 16:49:25 -0700
commit56b8b214107a0320c7277cd832480998057f8413 (patch)
tree73e22e2979b33263c21664e37753a1b192d17fdc /glsl_parser_extras.h
parente701761cc84a136c2e1b3cf341bc0edb90492278 (diff)
Add _mesa_glsl_warning to emit warnings to the shader log
Diffstat (limited to 'glsl_parser_extras.h')
-rw-r--r--glsl_parser_extras.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/glsl_parser_extras.h b/glsl_parser_extras.h
index 15667ebb68..7759eda535 100644
--- a/glsl_parser_extras.h
+++ b/glsl_parser_extras.h
@@ -74,6 +74,15 @@ typedef struct YYLTYPE {
extern void _mesa_glsl_error(YYLTYPE *locp, _mesa_glsl_parse_state *state,
const char *fmt, ...);
+/**
+ * Emit a warning to the shader log
+ *
+ * \sa _mesa_glsl_error
+ */
+extern void _mesa_glsl_warning(const YYLTYPE *locp,
+ const _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);