Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Source/SimpleParser/SimpleParser.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5588,6 +5588,8 @@ procedure TmwSimplePasPar.AnonymousMethod;
FormalParameterList;
end;
end;
while ExID in [ptCdecl, ptPascal, ptRegister, ptSafeCall, ptStdCall] do
ProceduralDirective;
Block;
end;

Expand All @@ -5611,6 +5613,8 @@ procedure TmwSimplePasPar.AnonymousMethodType;
ReturnType;
end;
end;
while ExID in [ptCdecl, ptPascal, ptRegister, ptSafeCall, ptStdCall] do
ProceduralDirective;
end;

procedure TmwSimplePasPar.AddDefine(const ADefine: string);
Expand Down
11 changes: 11 additions & 0 deletions Test/Snippets/anonymousmethodcallingconvention.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
unit anonymousmethodcallingconvention;

interface

type
TStdFunc = reference to function(const A: Integer): HRESULT stdcall;
TCdeclProc = reference to procedure(P: Pointer) cdecl;

implementation

end.