On Friday, 14 August 2015 at 14:44:13 UTC, Jacob Carlborg wrote:
On 2015-08-14 14:39, ponce wrote:

I see. I've indeed started to cast but only to get the right return
type, and left the vararg list. That may be the problem.

The signature of the objc_msgSend function is mostly irrelevant. The function needs to be casted because it will jump to the implementation of the method so the arguments to the objc_msgSend call needs to be setup as the implementation of the method expects.

Thanks. I've solved my problem which was about D callbacks signatures instead of objc_msgSend trampolines. Oddly enough, variadic calls seem to work for now.

Reply via email to