Recent

Author Topic: Procedure as a record field  (Read 742 times)

peardox

  • New Member
  • *
  • Posts: 33
Re: Procedure as a record field
« Reply #15 on: September 12, 2019, 11:49:03 pm »
Yep, I'll try it out on Linux + OSX tomorrow

Cdecl, stdcall and pascal all differ - see https://en.wikipedia.org/wiki/X86_calling_conventions. Mixing up cdecl + stdcall wouldn't be pretty (caller vs callee tidyup)

Stupid me...

Cmem was killing it on Windoze :( Dunno why I put it in - something will have complained at some point and I'll have just put it in...

All works now...
« Last Edit: September 12, 2019, 11:55:16 pm by peardox »

PascalDragon

  • Hero Member
  • *****
  • Posts: 626
  • Compiler Developer
Re: Procedure as a record field
« Reply #16 on: September 13, 2019, 09:23:00 am »
AFAIK stdcall is for windows only and cdecl for the *nixes
In the end it depends on the code. stdcall on i386 *nix systems is very seldom, but it is possible as GCC as well as clang support it.