projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6062d03
)
Change guarantee to show context of error.
author
Chris Hanson
<org/chris-hanson/cph>
Mon, 16 Apr 2018 02:16:38 +0000
(19:16 -0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Mon, 16 Apr 2018 02:16:38 +0000
(19:16 -0700)
src/runtime/boot.scm
patch
|
blob
|
history
diff --git
a/src/runtime/boot.scm
b/src/runtime/boot.scm
index 0a36e5200983f6ddd14f70800d6d1bb2d0efc5fb..7ac9cd8fdb0db7dba5c84c624a5aa7e1e4a43f25 100644
(file)
--- a/
src/runtime/boot.scm
+++ b/
src/runtime/boot.scm
@@
-403,9
+403,9
@@
USA.
(set-predicate<=! p1 p2))))
(define (guarantee predicate object #!optional caller)
- (if (
predicate object
)
- object
-
(error:not-a predicate object caller))
)
+ (if (
not (predicate object)
)
+ (error:not-a predicate object caller))
+
object
)
(define (error:not-a predicate object #!optional caller)
(error:wrong-type-argument object (predicate-description predicate) caller))