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.
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 copiesforeign-block-release
, foreign-block is of type released-foreign-block-pointer.foreign-block-release
has no useful return value.foreign-block-release
is implemented in LispWorks for Macintosh only.
foreign-block-copy
free-foreign-block
released-foreign-block-pointer
Block objects in C (foreign blocks)
LispWorks Foreign Language Interface User Guide and Reference Manual - 29 Sep 2017