cs: repair call-with-immediate-continuation-mark

The default-value expression could get lost, replaced with just #f.
This commit is contained in:
Matthew Flatt 2019-10-13 08:32:12 -06:00
parent edefea7b61
commit edfcec8211
4 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@
(define collection 'multi)
(define version "7.5.0.2")
(define version "7.5.0.3")
(define deps `("racket-lib"
["racket" #:version ,version]))

View File

@ -698,6 +698,7 @@
(test #f call-with-immediate-continuation-mark 'x (lambda (v) v))
(test 10 call-with-immediate-continuation-mark 'x (lambda (v) v) 10)
(test 10 'also-ten (call-with-immediate-continuation-mark 'x (lambda (v) v) 10))
(test 12 'cwicm (with-continuation-mark 'x 12 (call-with-immediate-continuation-mark 'x (lambda (v) v))))
(test '(#f) 'cwiwcm (with-continuation-mark 'x 12 (list (call-with-immediate-continuation-mark 'x (lambda (v) v)))))
(test 12 'cwicm (with-continuation-mark 'x 12

View File

@ -1112,7 +1112,7 @@
[(_ key-expr proc-expr)
#'(call-with-immediate-continuation-mark/inline key-expr proc-expr #f)]
[(_ key-expr (|#%name| _ (lambda (arg) body ...)) default-v-expr)
#'(call-with-immediate-continuation-mark/inline key-expr (lambda (arg) body ...) #f)]
#'(call-with-immediate-continuation-mark/inline key-expr (lambda (arg) body ...) default-v-expr)]
[(_ key-expr (lambda (arg) body ...) default-v-expr)
#'(call-getting-continuation-attachment
empty-mark-frame

View File

@ -16,7 +16,7 @@
#define MZSCHEME_VERSION_X 7
#define MZSCHEME_VERSION_Y 5
#define MZSCHEME_VERSION_Z 0
#define MZSCHEME_VERSION_W 2
#define MZSCHEME_VERSION_W 3
/* A level of indirection makes `#` work as needed: */
#define AS_a_STR_HELPER(x) #x