Skip to content

Choose a tag to compare

@tokibito tokibito released this 13 Nov 18:11
· 2 commits to main since this release
1210b08

Requires Delphi XE4 or later; projects on Delphi 2007 to XE3 should stay on
0.1. The parser API is unchanged, so upgrading is a matter of replacing the
unit.

Added

  • Win64 support for Delphi. The Makefiles build the tests and the example
    with both dcc32 and dcc64 (make win32, make win64, or both with
    make all), and the .dproj files target Win32 and Win64. CI builds and
    runs both with Delphi XE4.
    (#4)
  • CONTRIBUTING.md and this changelog.

Changed

  • Delphi XE4 or later is required. Delphi 2007 to XE3 are no longer
    supported. The CompilerVersion conditionals are gone, and the Delphi code
    always uses unit scope names (System.SysUtils and so on). The parser
    itself behaves exactly as before, and FPC is unaffected.
    (#4)
  • The test runner uses RTTI. Nullpobug.UnitTest finds test methods with
    TRttiContext and calls them with TRttiMethod.Invoke instead of walking
    the VMT method table. It runs published, parameterless methods whose names
    start with Test, and an overridden method once.
    (#4)
  • The README documents the API, the exceptions and how to build and test, and
    states the supported FPC version (3.2 or later).
    (#5)

Fixed

  • Nullpobug.UnitTest no longer calls FreeAndNil on TStopWatch, which
    is a record.
    (#4)