Compatibility_functions: small fixes for tests 19/18519/4
Paul Bignier [Fri, 26 Aug 2016 09:39:10 +0000 (11:39 +0200)]
 * Tests were not passing. It is better now but still needs https://codereview.scilab.org/#/c/18438 to pass

Change-Id: I77b1bab3085c20e41eda928e8de48aab24d73433

scilab/modules/compatibility_functions/macros/mtlb_axis.sci
scilab/modules/compatibility_functions/macros/mtlb_eval.sci

index 4227e44..0302ba8 100644 (file)
@@ -13,7 +13,7 @@
 function varargout=mtlb_axis(varargin)
     // Emulation function for Matlab axis()
 
-    varargout(1)=list()
+    varargout=list()
     listvar=varargin
     if size(listvar)==0
         a=gca();
index 93f954b..3685067 100644 (file)
@@ -97,6 +97,9 @@ function r=mtlb_eval(%s1,%s2)
         r=ans
     else
         r=[];
+        if isempty(nams) then
+            return;
+        end
         execstr("["+strcat(nams,",")+"]"+"=resume"+"("+strcat(nams,",")+")")
     end