From 28ca4dc60aecc0acda8b364d0553a72d2e6c7964 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 11 Oct 2017 16:05:09 -0700 Subject: [PATCH] Fixup: re-enable exception guard (#208) This is intended to produce a better experience for end users when they encounter internal compiler errors. --- source/slang/slang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index e51d111de8..65abbb3f29 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -859,7 +859,7 @@ SLANG_API int spCompile( { auto req = REQ(request); -#if 0 +#if 1 // By default we'd like to catch as many internal errors as possible, // and report them to the user nicely (rather than just crash their // application). Internally Slang currently uses exceptions for this.