1 #include "glsl_error.h"
10 invalid_shader_source::invalid_shader_source(const Location &loc, const string &message):
11 runtime_error(format("%s:%d: %s", loc.name, loc.line, message))
14 syntax_error::syntax_error(const Location &loc, const string &token, const string &message):
15 invalid_shader_source(loc, "Syntax error near '%s': %s", token, message)
18 parse_error::parse_error(const Location &loc, const string &token, const string &expected):
19 invalid_shader_source(loc, "Parse error at '%s': expected %s", token, expected)
23 Diagnostic::Diagnostic():
31 Diagnostic::Diagnostic(Severity v, int s, unsigned l, const string &m):