X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fglsl%2Fsyntax.h;h=e7c642ba4abe0c9f4b2d8b91b065a85e499f0362;hb=9ec831710f64a62ad5f2e896a55ae82a3519f29e;hp=70ea50d106f774c2c8be8974cb3140fbf0421d39;hpb=3f899b1fc2e04f4fe74c99ad3e8ebb900c257214;p=libs%2Fgl.git diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 70ea50d1..e7c642ba 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -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();