X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.h;h=9477b67d70cb7a7ecc9acc38ad81e76d81af1c97;hp=b64973276536e2dbc653ac30f142866ccb3b3fcb;hb=d18df036b247f7f0978b547bb8ea1d624af2c4b2;hpb=4181ceb89a2d538712c81826da610e7e8583e9a5 diff --git a/source/glsl/validate.h b/source/glsl/validate.h index b6497327..9477b67d 100644 --- a/source/glsl/validate.h +++ b/source/glsl/validate.h @@ -14,11 +14,14 @@ class Validator: protected TraversingVisitor { protected: Stage *stage; + Node *last_provoker; Validator(); - void diagnose(Node &, Diagnostic::Severity, const std::string &); + void diagnose(Node &, Node &, Diagnostic::Severity, const std::string &); + void diagnose(Node &n, Diagnostic::Severity s, const std::string &m) { diagnose(n, n, s, m); } void error(Node &n, const std::string &m) { diagnose(n, Diagnostic::ERR, m); } + void add_info(Node &, const std::string &); }; class TypeValidator: private Validator