Next Previous Up Top Contents Index

5 Function and Macro Reference

pointerp

Function

Summary

Tests whether an object is a pointer or not.
Package

fli

Signature

pointerp pointer => boolean

Arguments

pointer

An object that may be an FLI pointer.

Values

boolean

If pointer is a pointer thent is returned, otherwisenil is returned.

Description

The functionpointerp tests whether pointer is a pointer or not, and returnst if it is.
Example

In the following example a pointer,point, is defined, and an object which is not a pointer is defined. Both are tested usingpointerp.
(setq point (fli:allocate-foreign-object :type :int))

(setq not-point 7)

(fli:pointerp point)

(fli:pointerp not-point)

See Also

null-pointer-p
pointer-address
pointer-eq

LispWorks Foreign Language Interface - 12 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker