Wrong line number with t/mlist extraction overload
Bug Description
The callstack in case of error or whereami return the wrong line number.
--> test(ml);
whereami called at line 3 of macro %test_e
%test_e called at line 0 of macro test
The first line in a macro is at least 1.
Steps to reproduce
Execute the following script in Scilab:
ml = mlist(["test", "field"], 1);
function out = %test_e(varargin)
out = 42;
whereami()
endfunction
function test(ml)
ml(1);
end
test(ml);
What is the expected correct behavior?
The line 0 must be line 2.
--> test(ml);
whereami called at line 3 of macro %test_e
%test_e called at line 2 of macro test