Menu

#232 UnitExportsParser does not handle nested IFNDEF / ELSE correctly

Closed
closed-wont-fix
None
5
2026-03-09
2020-11-08
No

The UnitExportsParser does not handle the following code correctly, if DELPHI2007_UP is defined:

unit bla;

interface

{$IFNDEF DELPHI2007_UP}
{$IFNDEF NO_DELPHI2007UP_HINT}
{$MESSAGE HINT 'Delphi <2007 not supported'}
{$ENDIF}
{$ELSE}
// some declarations here
{$ENDIF}

implementation

end.

It should parse the ELSE part but it skips it.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2026-03-09
    • status: open --> closed-wont-fix
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2026-03-09

    Fixing this is non-trivial and not worth the effort.

     

Log in to post a comment.

MongoDB Logo MongoDB