Next: , Previous: free-converted-object, Up: Foreign Types


free-translated-object

Syntax

— Generic Function: free-translated-object value type-name param

Arguments and Values

pointer
The foreign value returned by translate-to-foreign.
type-name
A symbol naming a foreign type defined by defctype.
param
The second value, if any, returned by translate-to-foreign.

Description

This generic function may be specialized by user code to perform automatic deallocation of foreign objects as they are passed to C functions.

Any methods defined on this generic function must EQL-specialize the type-name parameter on a symbol defined as a foreign type by the defctype macro.

See Also

Foreign Type Translators
translate-to-foreign