Correct order of clauses for exec_if

This commit is contained in:
Lee Spector 2020-11-22 22:05:42 -05:00
parent 97de757f57
commit 0482ccccf5

View File

@ -124,7 +124,7 @@
:exec_if
^{:stacks #{:boolean :exec}}
(fn [state]
(make-instruction state #(if %1 %3 %2) [:boolean :exec :exec] :exec)))
(make-instruction state #(if %1 %2 %3) [:boolean :exec :exec] :exec)))
;; If the top BOOLEAN is TRUE, leaves the first item on the EXEC stack to be
;; executed. Otherwise, it removes it. Acts as a NOOP unless there is at least