1
0
forked from alex-eg/sex

add c-or/c-bit-or/c-bit-or= support

This commit is contained in:
2025-10-22 22:28:37 +03:00
committed by Pavel Kulyov
parent 3af850b111
commit 2f75e80bc9

View File

@@ -75,6 +75,11 @@
(('cast expr type) (list '%cast (('cast expr type) (list '%cast
(walk-type type) (walk-type type)
(walk-expr expr))) (walk-expr expr)))
;; | is problematic... And c-or/bit-or/etc are actually
;; procedures, so we have to call the procedure itself
(('c-or . rest) (apply c-or (map walk-expr rest)))
(('c-bit-or . rest) (apply c-bit-or (map walk-expr rest)))
(('c-bit-or= . rest) (apply c-bit-or= (map walk-expr rest)))
(else (map walk-expr form)))) (else (map walk-expr form))))
(define (walk-var form) (define (walk-var form)