]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Make the iteration init statement a Statement instead of Node
[libs/gl.git] / source / glsl / syntax.h
index 682a0f5aeeaa2246b01226df25536a23a91d9c7a..384bd60f603dc04cef77d41a67f5f190d5414851 100644 (file)
@@ -30,7 +30,8 @@ struct Operator
        enum Associativity
        {
                LEFT_TO_RIGHT,
-               RIGHT_TO_LEFT
+               RIGHT_TO_LEFT,
+               ASSOCIATIVE
        };
 
        char token[4];
@@ -368,7 +369,7 @@ struct Conditional: Statement
 
 struct Iteration: Statement
 {
-       NodePtr<Node> init_statement;
+       NodePtr<Statement> init_statement;
        NodePtr<Expression> condition;
        NodePtr<Expression> loop_expression;
        Block body;