diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-06 09:52:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-06 09:52:53 -0700 |
| commit | 21a14cb4e0d578bc4f8a460016269a1199cac0da (patch) | |
| tree | 88a04619ceaaa37b87199dd82334cc9d102c156d /source/slang/syntax.h | |
| parent | f313df379dd9e0d4395f072ffb87016a6f20d5a1 (diff) | |
| parent | f145e09a6dcbcf326f782b3e6a76dbf291c792cf (diff) | |
Merge pull request #53 from tfoleyNV/cross-compilation
Initial work on cross-compilation
Diffstat (limited to 'source/slang/syntax.h')
| -rw-r--r-- | source/slang/syntax.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h index 47427b130..6587e18c3 100644 --- a/source/slang/syntax.h +++ b/source/slang/syntax.h @@ -14,6 +14,7 @@ namespace Slang class Substitutions; class SyntaxVisitor; class FunctionSyntaxNode; + class Layout; struct IExprVisitor; struct IDeclVisitor; @@ -347,9 +348,15 @@ namespace Slang { return DeclRef<ContainerDecl>::unsafeInit(DeclRefBase::GetParent()); } - }; + + template<typename T> + inline DeclRef<T> makeDeclRef(T* decl) + { + return DeclRef<T>(decl, nullptr); + } + template<typename T> struct FilteredMemberList { |
