From a6c4b33e8bf6da6a9fe2c3eec322a75c07b06311 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 28 Apr 2024 20:22:08 +0800 Subject: [PATCH] some fix --- include/pocketpy/config.h | 1 - src/vm.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/pocketpy/config.h b/include/pocketpy/config.h index c20b1262..9a3570bd 100644 --- a/include/pocketpy/config.h +++ b/include/pocketpy/config.h @@ -39,7 +39,6 @@ #define PK_DEBUG_NO_BUILTINS 0 #define PK_DEBUG_DIS_EXEC 0 #define PK_DEBUG_CEVAL_STEP 0 -#define PK_DEBUG_FULL_EXCEPTION 0 #define PK_DEBUG_MEMORY_POOL 0 #define PK_DEBUG_NO_MEMORY_POOL 0 #define PK_DEBUG_NO_AUTO_GC 0 diff --git a/src/vm.cpp b/src/vm.cpp index 61d88569..b5fabf35 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -169,7 +169,6 @@ namespace pkpy{ }catch (const Exception& e){ stderr_write(e.summary() + "\n"); } -#if !PK_DEBUG_FULL_EXCEPTION catch(const std::exception& e) { Str msg = "An std::exception occurred! It could be a bug.\n"; msg = msg + e.what() + "\n"; @@ -182,7 +181,6 @@ namespace pkpy{ Str msg = "An unknown exception occurred! It could be a bug. Please report it to @blueloveTH on GitHub.\n"; stderr_write(msg); } -#endif callstack.clear(); s_data.clear(); return nullptr;