On Sunday, 8 April 2012 at 01:15:48 UTC, Timon Gehr wrote:
The D calling convention leaves stack cleanup up to the callee. Either mark your function as extern(C) or useleave ret 16The second option might not be portable across all currently available compilers though.
Hi Timon, Works fine, thanks!I don't worry too much about compatibility - GCD uses a completely different ASM notation anyway.
Cheers, Stefan