The body of executed file/macro have to be returnable. 95/17695/2
Cedric Delamarre [Fri, 15 Jan 2016 16:18:14 +0000 (17:18 +0100)]
// test bug_10139
atomsInstall apifun
atomsTest apifun
atomsRemove apifun

Change-Id: Icb46b11f2ba29c0b114decbfab32a0a42d496d76

scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp

index 861ff5d..344010b 100644 (file)
@@ -296,6 +296,7 @@ types::Function::ReturnValue sci_exec(types::typed_list &in, int _iRetCount, typ
 
     ast::SeqExp* pSeqExp = pExp->getAs<ast::SeqExp>();
     pSeqExp->setExecFrom(ast::SeqExp::EXEC);
+    pSeqExp->setReturnable();
     std::unique_ptr<ast::ConstVisitor> exec(ConfigVariable::getDefaultVisitor());
 
     try