RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

Adding support for WinApi calling directive #316

Open Irame opened 2 years ago

bogdanpolak commented 2 years ago

@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?

darnocian commented 1 year ago

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