Re: [Pharo-dev] typedef pointerArity for FFIOpaqueObjects

2016-09-09 Thread Esteban Lorenzano
Hi Ben, here you do not need to use an opaque object (is not that what you want). in this case you have two paths to follow: 1) you just declare CXIndex as an alias of ExternalAddress (or void*). This will work but is not cool because UFFI will answer you an ExternalAddress and probably you

[Pharo-dev] typedef pointerArity for FFIOpaqueObjects

2016-09-09 Thread Ben Coman
I have a type definition... typedef void *CXIndex; which I believe reads "CXIndex is a pointer at void" that is returned by... CXIndex clang_createIndex(int x, int y) This seems an obvious candidate to be a FFIOpaqueObject defined like this... FFIOpaqueObject subclass: #CXIndex