[squeak-dev] FFI | How to declare pointer to external structure in #fields?
Vanessa Freudenberg
vanessa at codefrau.net
Mon May 18 17:59:54 UTC 2020
On Mon, May 18, 2020 at 7:05 AM Marcel Taeumel <marcel.taeumel at hpi.de>
wrote:
> Hi, there!
>
> In the #fields method of a new ExternalStructure, how can I express a
> pointer to another external structure?
>
> First, non-pointer works as expected:
> ^ #( (other MyStruct) )
>
> Second, this just treats it as a void*, which returns a generic
> ExternalData:
> ^ #( (other 'MyStruct*') )
>
> Third, this gives me a debugger:
> ^ #( (other MyStruct *) )
>
>
I don't have the code in front of me but there is the parser you could
check ;)
It might be *MyStruct.
- Vanessa -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200518/6bdc631e/attachment.html>
More information about the Squeak-dev
mailing list
|