Macros for unsafe car/cdr access

This commit is contained in:
Juan Jose Garcia Ripoll 2010-05-14 16:30:18 +02:00
parent ad4d31cde9
commit fe38ab3039

View file

@ -36,6 +36,13 @@
(expand-simple-optimizer (rest whole) args inline-form env)
whole)))))
(defmacro cons-car (x)
`(ffi:c-inline (,x) (:object) :object "ECL_CONS_CAR(#0)"
:one-liner t :side-effects nil))
(defmacro cons-cdr (x)
`(ffi:c-inline (,x) (:object) :object "ECL_CONS_CDR(#0)"
:one-liner t :side-effects nil))
;;;
;;; RPLACA / RPLACD
;;;