Scilab stacktrace report a macro as a `builtin` and failed to report the erroneous line
Bug Description
While debugging some Scilab code, I found a case where a macro is reported as a builtin
.
Steps to reproduce
(this needs !335 (merged) to be merged as it reports Xcos warnings as Scilab warnings)
loadXcosLibs
warning("stop")
exec("SCI\modules\scicos\tests\unit_tests\sciblk2.tst");
What is the expected correct behavior?
do_eval
error line should report the exact line in do_eval.sci
.
Error log
--> loadXcosLibs
--> warning("stop")
--> exec("SCI\modules\scicos\tests\unit_tests\sciblk2.tst");
Xcos warning: Wrong field value for Link #16: does not match Block #1 defined ports.
in builtin do_eval ( E:\nosave\work\branches\minor\scilab\modules\scicos\macros\scicos_scicos\do_eval.sci line 22 )
at line 212 of function scicos_simulate ( E:\nosave\work\branches\minor\scilab\modules\scicos\macros\scicos_auto\scicos_simulate.sci line 236 )
at line 44 of executed file E:\nosave\work\branches\minor\scilab\modules\scicos\tests\unit_tests\sciblk2.tst
*** Execution stopped after a warning. ***
Set warning("on") to continue execution after a warning.
Edited by Cédric DELAMARRE