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

This commit is contained in:
2025-10-22 22:28:37 +03:00
parent 7a21316c10
commit b379aae8b6

View File

@@ -75,6 +75,11 @@
(('cast expr type) (list '%cast
(walk-type type)
(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))))
(define (walk-var form)