Open CthulhuDen opened 5 years ago
Related to #73.
I believe fix for that previous issue did not address the case when pointer type parater was specified in pointer declaration. For example, if we have
{# pointer *cpSpace as CPSpacePtr foreign finalizer cpSpaceFree -> CPSpace #}
The produced finalizer import block will read as follows:
foreign import ccall "Chiphunk.chs.h &cpSpaceFree" cpSpaceFree :: C2HSImp.FinalizerPtr ()
Note that the type paramter to FinalizePtr is still (), which will not compile together with type CPSpacePtr = C2HSImp.ForeignPtr (CPSpace).
type CPSpacePtr = C2HSImp.ForeignPtr (CPSpace)
Related to #73.
I believe fix for that previous issue did not address the case when pointer type parater was specified in pointer declaration. For example, if we have
The produced finalizer import block will read as follows:
Note that the type paramter to FinalizePtr is still (), which will not compile together with
type CPSpacePtr = C2HSImp.ForeignPtr (CPSpace)
.