Skip to content

Expand Array Assert Macros - #124

Merged
ergo720 merged 6 commits into
Cxbx-Reloaded:masterfrom
RadWolfie:expand-assert-macros
Aug 19, 2026
Merged

Expand Array Assert Macros#124
ergo720 merged 6 commits into
Cxbx-Reloaded:masterfrom
RadWolfie:expand-assert-macros

Conversation

@RadWolfie

Copy link
Copy Markdown
Member

The changes were made to break down macros in order to use lower-level macros for certain tests. This allows direct access inside a loop instead of relying on the macro's internal loop process. The updated code in the section suite serves as an example of how this can be achieved. The work-in-progress tests currently use this method, eliminating the need to call the snprintf function for every unique member name and index.

Two new macros have been introduced:

  • GEN_CHECK_ARRAY_MEMBER_ARRAY
  • GEN_CHECK_NESTED_MEMBER

The GEN_CHECK_NESTED_MEMBER macro is currently unused and may be removed in the future if it is no longer needed.

@ergo720
ergo720 merged commit da80f1f into Cxbx-Reloaded:master Aug 19, 2026
1 check passed
@RadWolfie
RadWolfie deleted the expand-assert-macros branch August 19, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants