1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-26 07:10:09 +01:00

Fixed SAL effects so that correct line numbers are reported when an error occurs.

This commit is contained in:
rbdannenberg
2010-11-02 19:46:19 +00:00
parent 28661781be
commit 467aa5590a
3 changed files with 10 additions and 41 deletions

View File

@@ -1264,7 +1264,8 @@
(setf expr (parse-sexpr))
(if *sal-fn-name*
(add-line-info-to-stmt (list 'sal-return-from *sal-fn-name* expr) loc)
(list 'defun 'main '() (add-line-info-to-stmt expr loc)))))
(list 'defun 'main '() (list 'sal-trace-enter '(quote main) '() '())
(add-line-info-to-stmt expr loc)))))
(defun parse-load ()

View File

@@ -520,7 +520,7 @@
(let (output remainder rslt stack)
(setf stack *sal-call-stack*)
;; if first input char is "(", then eval as a lisp expression:
;(display "sal-compile" input)
;(display "sal-compile" input)(setf *sal-compiler-debug* t)
(cond ((input-starts-with-open-paren input)
;(print "input is lisp expression")
(errset