diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-07-19 18:52:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-19 18:52:38 -0700 |
| commit | f07c01ceb012b9b325a8ecebd12cdd5797d8d5b3 (patch) | |
| tree | 0b93a109d51e6565560ad785519a863386490e2a /source/slang/slang-stdlib.cpp | |
| parent | a2b8b4c20632d79721052abd232fe2d1bdf2700d (diff) | |
| parent | 3f48e1c0d84bf4909954154ad147559656e87516 (diff) | |
Merge pull request #128 from tfoleyNV/improve-failure-modes
Try to improve handling of failures during compilation
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 7850b0ce0..60b69818c 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -1289,7 +1289,7 @@ namespace Slang for(int M = 2; M <= (N-2); ++M) { int K = N - M; - assert(K >= 2); + SLANG_ASSERT(K >= 2); sb << "__init(vector<T," << M << "> " << kVectorNames[M]; sb << ", vector<T," << K << "> "; @@ -1453,7 +1453,7 @@ namespace Slang break; default: - assert(!"unexpected"); + SLANG_UNEXPECTED("unhandled resource shape"); break; } |
