]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programsyntax.h
Inject the global context to the syntax tree
[libs/gl.git] / source / programsyntax.h
index 99ce8b9c1c47ebd20c202042d35218e67cfe17a8..8f72a0bdfc7258a4af9bdb048e0aad114b4a83a2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_PROGRAMSYNTAX_H_
 #define MSP_GL_PROGRAMSYNTAX_H_
 
+#include <list>
 #include <map>
 #include <string>
 #include <vector>
@@ -47,7 +48,7 @@ struct VariableDeclaration;
 
 struct Block: Node
 {
-       std::vector<NodePtr<Node> > body;
+       std::list<NodePtr<Node> > body;
        bool use_braces;
 
        Block();