blueloveTH 1 vuosi sitten
vanhempi
commit
a6c4b33e8b
2 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0 1
      include/pocketpy/config.h
  2. 0 2
      src/vm.cpp

+ 0 - 1
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

+ 0 - 2
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;