]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkInterpreterVirtual.cxx
#135 BBTK Feature New Normal - branch vtk7itk4wx3
[bbtk.git] / kernel / src / bbtkInterpreterVirtual.cxx
index 93d05ed5cf88ef1d335734a949476b26cb088134..451ade9e45cabbbfea1285770f41f77aa45bec28 100644 (file)
@@ -516,6 +516,7 @@ namespace bbtk
   //=======================================================================
   void InterpreterVirtual::CatchUnknownException()
   {
+printf("EED InterpreterVirtual::CatchUnknownException Start\n");
 //EED Borrame   if (GetExecuter()->GetNoErrorMode()) 
 //EED Borrame       {
 //EED Borrame  std::string file("?");
@@ -556,27 +557,28 @@ namespace bbtk
        CloseAllFiles();
        std::cerr << mess.str();
       }
+printf("EED InterpreterVirtual::CatchUnknownException End\n");
   }
   //=======================================================================
 
   //=======================================================================
   
-#define CATCH_MACRO                                    \
-  catch (InterpreterException e)                       \
-    {                                                  \
-      CatchInterpreterException(e);                    \
-    }                                                  \
+#define CATCH_MACRO                                            \
+  catch (InterpreterException e)               \
+    {                                                                  \
+      CatchInterpreterException(e);            \
+    }                                                                  \
   catch (bbtk::Exception e)                            \
-    {                                                  \
-      CatchBbtkException(e);                           \
-    }                                                  \
+    {                                                                  \
+      CatchBbtkException(e);                   \
+    }                                                                  \
   catch (std::exception& e)                            \
-    {                                                  \
+    {                                                                  \
       CatchStdException(e);                            \
-    }                                                  \
-  catch (...)                                          \
-    {                                                  \
-      CatchUnknownException();                         \
+    }                                                                  \
+  catch (...)                                                  \
+    {                                                                  \
+      CatchUnknownException();                 \
     }                                          
   //=======================================================================
    
@@ -611,8 +613,7 @@ namespace bbtk
 
 
   //=======================================================================
-  InterpreterVirtual::ExitStatus 
-  InterpreterVirtual::InterpretBuffer( std::stringstream* buffer )
+  InterpreterVirtual::ExitStatus   InterpreterVirtual::InterpretBuffer( std::stringstream* buffer )
   {
     bbtkDebugMessage("interpreter",4,"==> InterpreterVirtual::InterpretBuffer()"<<std::endl);
 
@@ -633,6 +634,7 @@ namespace bbtk
 
     
     mCommandLine = exm;
+
     return mStatus;
   }
   //=======================================================================