All Manuals > LispWorks Foreign Language Interface User Guide and Reference Manual > 5 Function and Macro Reference

NextPrevUpTopContentsIndex

foreign-type-equal-p

Function
Summary

Determines whether two foreign types are the same underlying foreign type.

Package

fli

Signature

foreign-type-equal-p type1 type2 => result

Arguments

type1

A foreign type.

type2

A foreign type.

Values

result

A boolean.

Description

The function foreign-type-equal-p returns true if type1 and type2 are the same underlying foreign type, and false otherwise.

Example
(fli:define-foreign-type aa () '(:signed :byte))
=>
aa
 
(fli:define-foreign-type bb () '(:signed :char))
=>
bb
 
(fli:foreign-type-equal-p 'aa 'bb)
=>
t
 
(fli:foreign-type-equal-p 'bb :char)
=>
nil
See also

define-foreign-type


LispWorks Foreign Language Interface User Guide and Reference Manual - 7 Dec 2011

NextPrevUpTopContentsIndex