]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/resolve.h
Apply implicit conversion to return expressions in GLSL functions
[libs/gl.git] / source / glsl / resolve.h
index 10322d49f67e89d80f61b994177f18c1b2b0588b..fdbebfe8e3a8e8249407545d5abfef5ca291dda0 100644 (file)
@@ -102,6 +102,7 @@ private:
        };
 
        Stage *stage = 0;
+       const FunctionDeclaration *current_function = 0;
        std::vector<BasicTypeDeclaration *> basic_types;
        NodeList<Statement>::iterator insert_point;
        bool r_any_resolved = false;
@@ -133,6 +134,8 @@ private:
        virtual void visit(FunctionCall &);
        virtual void visit(BasicTypeDeclaration &);
        virtual void visit(VariableDeclaration &);
+       virtual void visit(FunctionDeclaration &);
+       virtual void visit(Return &);
 };
 
 /** Resolves function declarations and calls. */