All Manuals > Foreign Language Interface User Guide and Reference Manual > 7 Function, Macro and Variable Reference

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.

Examples
(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

2 FLI Types
define-foreign-type


Foreign Language Interface User Guide and Reference Manual - 01 Dec 2021 19:34:58