summaryrefslogtreecommitdiff
path: root/source/slang/diagnostics.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-14 11:31:23 -0700
committerGitHub <noreply@github.com>2017-07-14 11:31:23 -0700
commitd9366db8993c566fbb0af780c13db438dbf74022 (patch)
tree7f8302ad4eb9558e1260ad8aed048f1292092489 /source/slang/diagnostics.h
parent47e94a14a174ce501883c85b7c742c10b785b4f5 (diff)
parent2bf87743ffe73f041036ae62c8bf53f09215ca53 (diff)
Merge pull request #89 from tfoleyNV/glpervertex-location-fix
Don't use "auto locations" mode in glslang
Diffstat (limited to 'source/slang/diagnostics.h')
-rw-r--r--source/slang/diagnostics.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/diagnostics.h b/source/slang/diagnostics.h
index 6957fc763..988cb742b 100644
--- a/source/slang/diagnostics.h
+++ b/source/slang/diagnostics.h
@@ -206,7 +206,7 @@ namespace Slang
#define SLANG_UNIMPLEMENTED(sink, pos, what) \
(sink)->diagnose(Slang::CodePosition(__LINE__, 0, 0, __FILE__), Slang::Diagnostics::unimplemented, what)
-#define SLANG_UNREACHABLE(msg) do { assert(!"ureachable code:" msg); exit(1); } while(0)
+#define SLANG_UNREACHABLE(msg) do { assert(!"ureachable code:" msg); throw 0; } while(0)
#else
#define SLANG_INTERNAL_ERROR(sink, pos) \
(sink)->diagnose(pos, Slang::Diagnostics::internalCompilerError)