I suspect that comment predates the existence of capi and is trying to avoid having some other actual calling convention like stdcall because the function pointer is actually invoked from some C code in the RTS. capi is a sort of pseudo-calling-convention in that it generates some C code and then calls that stub.
Have you tried using a capi defined funptr there to see what happens?
I suspect that comment predates the existence of
capiand is trying to avoid having some other actual calling convention likestdcallbecause the function pointer is actually invoked from some C code in the RTS.capiis a sort of pseudo-calling-convention in that it generates some C code and then calls that stub.Have you tried using a capi defined funptr there to see what happens?