diff options
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 5eb40fefb..bd7de74ad 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -1151,6 +1151,14 @@ namespace Slang SyntaxNodeBase* createInstanceOfSyntaxClassByName( String const& name); + // `Val` + + inline bool areValsEqual(Val* left, Val* right) + { + if(!left || !right) return left == right; + return left->EqualsVal(right); + } + // inline BaseType GetVectorBaseType(VectorExpressionType* vecType) { |
