DelphiAST icon indicating copy to clipboard operation
DelphiAST copied to clipboard

Adding support for WinApi calling directive

Open Irame opened this issue 2 years ago • 2 comments

Irame avatar Oct 27 '21 08:10 Irame

@Irame can you please add a little more context here or bind it with the open issue? I see sample test file:

type
  TMyWinApiFunc = function(): Integer; winapi;
  TMyWinApiProc = procedure(); winapi;
function MyWinApiFunc(): Integer; winapi;
procedure MyWinApiProc(); winapi;

and guessing that DelphiAST is failing when parsing winapi key word?

bogdanpolak avatar Jun 08 '22 12:06 bogdanpolak

I don't know if this is required. Win API calls are normally stdcall.

https://learn.microsoft.com/en-us/cpp/cpp/stdcall?view=msvc-170

darnocian avatar May 25 '23 13:05 darnocian