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

foreign-block-release Function

Summary

Releases a foreign block, like _Block_release, in LispWorks for Macintosh.

Package

fli

Signature

foreign-block-release foreign-block

Arguments
foreign-block
A foreign block pointer.
Description

The function foreign-block-release releases a foreign block. It corresponds to the C function _Block_release.

foreign-block must be the result of foreign-block-copy. In particular, it is an error to call foreign-block-release on the result of allocate-foreign-block.

Notes
  1. In principle, you can also use foreign-block-release on foreign blocks that you received from foreign code, if the interface says that you need to release them. However, we do not expect this to happen, because proper interface will always free blocks that it allocates or copies.
  2. After the call to foreign-block-release, foreign-block is of type released-foreign-block-pointer.
  3. foreign-block-release has no useful return value.
  4. foreign-block-release is implemented in LispWorks for Macintosh only.
  5. To free a foreign block that was allocated by Lisp, use free-foreign-block.
See also

foreign-block-copy
free-foreign-block
released-foreign-block-pointer
5.7 Block objects in C (foreign blocks)


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