on errors, genlib() displays 'genlib' for the function name containing the error
Reported by Simon MARCHETTO
BUG DESCRIPTION:
----------------
gen_lib displays 'genlib' for the name of function/macro containing the error, instead of the function/macro name where the error really is.
HOW TO REPRODUCE THE BUG:
-------------------------
// create a macro foo.sci (in TMPDIR/foo) containing a syntax error at line 3
lib_path = TMPDIR + "/foo";
mkdir(lib_path);
file_path = lib_path + "/foo.sci";
fd = mopen(file_path, 'wt');
mputl(["a = 1"; "b = 2"; "c = 3!"], fd);
mclose(fd);
// build the libfoo lib from TMPDIR/foo
genlib('libfoo', lib_path);
=>
at line 3 of function genlib
c = 3!
^^
Error: Unexpected token '!'