Get line number of script line currently executed

Started by vetelko, September 10, 2017, 12:29:06 PM

Previous topic - Next topic

vetelko

Hi guys,



is it possible to get line number which is currently executed in script? Somethin like:



(if error  (println $lineno))
;; something magical like $it :)

Thanks in advance.
newLISP v.10.7.6 64-bit on BSD IPv4/6 UTF-8 libffi

rrq

#1
If nothing else, you could perhaps use an expression reading counter (reader-event (fn (x) (inc $exprno) x))