diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-06 11:29:59 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-06 11:29:59 -0700 |
| commit | e05fba99e9f4fa08b6252e31c39b0d5ac2d23a34 (patch) | |
| tree | c8b32aad918f61d93165282171619c8d43023554 /source/core | |
| parent | 03de737f0d18526b99b59a1810c7e290b66f4be2 (diff) | |
Add missing declaration types to lowering pass.
Most of these are cases we don't expect to encounter, but the big missing one was `TypeDefDecl`.
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/exception.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/core/exception.h b/source/core/exception.h index 6739c6778..dc674de7f 100644 --- a/source/core/exception.h +++ b/source/core/exception.h @@ -110,6 +110,13 @@ namespace Slang { } }; + + #define SLANG_UNEXPECTED(reason) \ + throw Slang::Exception("unexpected: " reason) + + #define SLANG_UNIMPLEMENTED_X(what) \ + throw Slang::NotImplementedException("unimplemented: " what) + } #endif
\ No newline at end of file |
