Function
fli
pointereq pointer1 pointer2 => boolean
An FLI pointer.
An FLI pointer.
boolean
If pointer1 points to the same address as pointer2,pointer-eq
returnst
, otherwise it returnsnil
.
pointer-eq
tests whether two pointers point to the same address, and returnst
if they do, andnil
if they do not.
point1
, is defined, andpoint2
is set equal to it. Both are then tested to see if they are equal to each other usingpointer-eq
. Thenpoint2
is defined to point to a different object, and the two pointers are tested for equality again. (setq point1 (fli:allocate-foreign-object :type :int)) (setq point2 point1) (fli:pointer-eq point1 point2) (setq point2 (fli:allocate-foreign-object :type :int)) (fli:pointer-eq point1 point2)
null-pointer-p
pointerp