summaryrefslogtreecommitdiffstats
path: root/source/core/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/exception.h')
-rw-r--r--source/core/exception.h7
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