X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fglsl_error.cpp;h=aff897ca012c73b249bd63fc12fe5e3e9cfa9299;hp=ea8e93064403d89c4ce5a3cb1fcc9947c3a58492;hb=c1ec86d6b9ceb6c71f787fed3b2ea6c75457a474;hpb=d3ceb2186dc79130508093b3d0c944771a53534f diff --git a/source/glsl/glsl_error.cpp b/source/glsl/glsl_error.cpp index ea8e9306..aff897ca 100644 --- a/source/glsl/glsl_error.cpp +++ b/source/glsl/glsl_error.cpp @@ -11,6 +11,10 @@ invalid_shader_source::invalid_shader_source(const Location &loc, const string & runtime_error(format("%s:%d: %s", loc.name, loc.line, message)) { } +syntax_error::syntax_error(const Location &loc, const string &token, const string &message): + invalid_shader_source(loc, "Syntax error near '%s': %s", token, message) +{ } + parse_error::parse_error(const Location &loc, const string &token, const string &expected): invalid_shader_source(loc, "Parse error at '%s': expected %s", token, expected) { }