The function pointerp
tests whether pointer is a pointer or not, and returns t
if it is.
In the following example a pointer, point
, is defined, and an object which is not a pointer is defined. Both are tested using pointerp
.
(setq point (fli:allocate-foreign-object :type :int))
(setq not-point 7)
(fli:pointerp point)
(fli:pointerp not-point)