]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/syntax.h
Inject builtins into the module
[libs/gl.git] / source / glsl / syntax.h
index 70ea50d106f774c2c8be8974cb3140fbf0421d39..e7c642ba4abe0c9f4b2d8b91b065a85e499f0362 100644 (file)
@@ -41,6 +41,12 @@ struct Operator
        static const Operator operators[];
 };
 
+enum
+{
+       BUILTIN_SOURCE = -1,
+       GENERATED_SOURCE = 0
+};
+
 struct NodeVisitor;
 
 struct Node
@@ -96,7 +102,7 @@ struct FunctionDeclaration;
 
 struct Statement: Node
 {
-       unsigned source;
+       int source;
        unsigned line;
 
        Statement();