Next: Foreign Dynamic Allocation, Previous: Accessing Foreign Values, Up: Operations On Foreign Values
The
sb-alien:addrmacro returns a pointer to the location specified by alien-expr, which must be either a foreign variable, a use ofsb-alien:deref, a use ofsb-alien:slot, or a use ofsb-alien:extern-alien.
The
sb-alien:castmacro converts foreign-value to a new foreign value with the specified new-type. Both types, old and new, must be foreign pointer, array or function types. Note that the resulting Lisp foreign variable object is noteqto the argument, but it does refer to the same foreign data bits.