From e3c74453309a685594b93f344cba9cb59b7ac456 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 31 May 2021 10:38:35 -0700 Subject: clean up trace depth in a few places It turns out the problem was that `and` wasn't cleaning up after itself when it short-circuited evaluation. Similar problems in a couple more places. --- shell/evaluate.mu | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shell/evaluate.mu') diff --git a/shell/evaluate.mu b/shell/evaluate.mu index d4e92373..d1be2246 100644 --- a/shell/evaluate.mu +++ b/shell/evaluate.mu @@ -342,6 +342,7 @@ fn evaluate _in-ah: (addr handle cell), _out-ah: (addr handle cell), env-h: (han compare nil?, 0/false { break-if-= + trace-higher trace return } var rest/eax: (addr cell) <- lookup *rest-ah @@ -388,6 +389,7 @@ fn evaluate _in-ah: (addr handle cell), _out-ah: (addr handle cell), env-h: (han compare nil?, 0/false { break-if-!= + trace-higher trace return } var rest/eax: (addr cell) <- lookup *rest-ah @@ -545,6 +547,7 @@ fn evaluate _in-ah: (addr handle cell), _out-ah: (addr handle cell), env-h: (han compare error?, 0/false break-if-= trace-higher trace + trace-higher trace return } # -- cgit 1.4.1-2-gfad0