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;