Skip to content

Define the version macros in seqlock.h #8

Closed

Description

@aajll

seqlock_version.h is generated by meson setup, so a copy-in build of seqlock.h has no version macros. Define them in the main header and keep Meson as a check rather than a generator.

Acceptance criteria

  • seqlock.h defines SEQLOCK_VERSION_MAJOR, _MINOR, _PATCH, SEQLOCK_VERSION, SEQLOCK_VERSION_STRING and SEQLOCK_VERSION_NUMBER (a long, safe where int is 16 bits).
  • meson setup fails when the header and project(version:) disagree.
  • seqlock_version.h is installed as a deprecated header that includes seqlock.h; the generated template is removed.
  • A test checks the macros through seqlock_version.h.
  • docs/api.md, docs/integration.md, AGENTS.md and CHANGELOG.md describe the change; the build passes on TI C2000 CGT 22.6.2 and 25.11.1 (COFF and EABI) and misch.

Activity

  1. aajll commented on Oct 15, 2026

    @aajll
    OwnerAuthor

    Done in #9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions