X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkInterpreter.cxx;fp=kernel%2Fsrc%2FbbtkInterpreter.cxx;h=a1a0fd10793034b4745c4196f39cf6050833be00;hb=b7d6fdd0df18c14ba87b1954561c8ec6fb1e7a0a;hp=1c6d750370a66e0331d9dc730bca919beb4df248;hpb=536dfc0a21b307fe5fa18afca108a77a5f79a6f6;p=bbtk.git diff --git a/kernel/src/bbtkInterpreter.cxx b/kernel/src/bbtkInterpreter.cxx index 1c6d750..a1a0fd1 100644 --- a/kernel/src/bbtkInterpreter.cxx +++ b/kernel/src/bbtkInterpreter.cxx @@ -97,32 +97,21 @@ namespace bbtk //======================================================================= void Interpreter::Init(VirtualExec::Pointer e, const std::string& cpp_file) { -printf("EED Interpreter::Init Start\n"); - if (e) - { - mVirtualExecuter = e; - } - else if (cpp_file.size()!=0) - { - mVirtualExecuter = boost::static_pointer_cast(bbtk::Transcriptor::New(cpp_file)); - } - else - { -printf("EED Interpreter::Init 1\n"); - bbtk::Executer::Pointer exe = bbtk::Executer::New(); - mRealExecuter = exe; - mVirtualExecuter = boost::static_pointer_cast(exe); + if (e) { + mVirtualExecuter = e; + } else if (cpp_file.size()!=0){ + mVirtualExecuter = boost::static_pointer_cast(bbtk::Transcriptor::New(cpp_file)); + } else { + bbtk::Executer::Pointer exe = bbtk::Executer::New(); + mRealExecuter = exe; + mVirtualExecuter = boost::static_pointer_cast(exe); } -printf("EED Interpreter::Init 2\n"); - - // Lock this pointer or will auto-destruct !! if (!e) mVirtualExecuter->SetInterpreter(MakePointer(this,true)); bbtk::InterpreterVirtual::Init(); -printf("EED Interpreter::Init End\n"); } //=======================================================================