From a6673e0c5e64e8c3554e5b5f9bd457418f5254a2 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 25 Feb 2023 14:58:41 +0800 Subject: [PATCH] Update vm.h --- src/vm.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/vm.h b/src/vm.h index 5e96655d..8bac1515 100644 --- a/src/vm.h +++ b/src/vm.h @@ -217,13 +217,10 @@ public: return _exec(code, _module); }catch (const pkpy::Exception& e){ *_stderr << e.summary() << '\n'; - } -#if !defined(__GNUC__) - catch (const std::exception& e) { + }catch (const std::exception& e) { *_stderr << "An std::exception occurred! It could be a bug.\n"; *_stderr << e.what() << '\n'; } -#endif callstack = {}; return nullptr; }