From e05fba99e9f4fa08b6252e31c39b0d5ac2d23a34 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 6 Jul 2017 11:29:59 -0700 Subject: 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`. --- source/core/exception.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/core/exception.h') 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 -- cgit v1.2.3