瀏覽代碼

Update vm.h

blueloveTH 3 年之前
父節點
當前提交
a6673e0c5e
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/vm.h

+ 1 - 4
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;
     }