curLine: () -> integer
curLine returns the line number within the function it was called. The lines are counted starting at the line containing the opening block-quote of the function body (line 1). If curLine is called from the command-line or from level 0 of a SALIERI program file, 0 is returned. Together with curFunc, curLine can be used for monitoring the execution of SALIERI programs or for generating messages when implementing user-specific exception handling.
> f:= FUNC(0, `write("called from ", curFunc(), " line ", curLine());´);
called from f, line 1
Result = 0
See also: curFunc, FUNC.