deref-pointer — Deferences a pointer.
Macro
deref-pointerptr type=> value
ptrA pointer to a foreign object.
typeA foreign type of the object being pointed to.
The value of the object where the pointer points.
(let ((intp (allocate-foreign-object :int)))
(setf (deref-pointer intp :int) 10)
(prog1
(deref-pointer intp :int)
(free-foreign-object intp)))
=> 10