extern export (Pascal) does not works correctly under Windows platform
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Feb 15 06:37:47 PST 2013
On 2/15/13, Andrey <vangelisforever at yandex.ru> wrote:
> // pascal model is the same that stdcall
> export extern(Pascal) // full analog of STDCALL
No it's not, pascal parameters are pushed left-to-right, stdcall does
it the other way around. Try using extern(Windows) here and see if
that works.
See http://en.wikipedia.org/wiki/X86_calling_conventions#pascal and
http://en.wikipedia.org/wiki/X86_calling_conventions#stdcall .
Also see Agner's detailed calling convention PDF:
www.agner.org/optimize/calling_conventions.pdf
More information about the Digitalmars-d
mailing list