Skip to content

Commit

Permalink
macros(check-value): Return t when there are no jget* errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed Sep 14, 2023
1 parent d11a808 commit be7aad5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion macros.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ If TEST is `jtruep' evaluate BODY."
(restart-case
(let ((result (jget indices object)))
(or (typecase expected
((eql t) (jget* indices object))
((eql t) (handler-case
(prog1
t
(jget* indices object))
(error () nil)))
((eql :true) (eq t result))
((eql :false) (eq nil result))
((and array (not string))
Expand Down

0 comments on commit be7aad5

Please sign in to comment.