]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.h
Recognize the #line directive in the GLSL parser
[libs/gl.git] / source / glsl / parser.h
index 58b14b502f5bf550e1285098a651662fcf653bbe..cdb57ebc5b48850bae81f4af251e5a841b669504 100644 (file)
@@ -16,6 +16,7 @@ class Parser
 {
 private:
        std::string source;
+       unsigned base_index;
        unsigned source_index;
        Tokenizer tokenizer;
        Preprocessor preprocessor;
@@ -34,7 +35,9 @@ public:
 private:
        void parse_source(const std::string &, unsigned);
        void set_required_version(const Version &);
+       void source_reference(unsigned, const std::string &);
        void stage_change(Stage::Type);
+       void line_change(int, unsigned);
 
        std::string expect_type();
        std::string expect_identifier();