Skip to content

Implement the Argument.memcpy_if_needed property#278

Merged
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:Argument-memcpy_if_needed
Jun 24, 2026
Merged

Implement the Argument.memcpy_if_needed property#278
avalentino merged 1 commit into
liberfa:mainfrom
eerovaher:Argument-memcpy_if_needed

Conversation

@eerovaher

Copy link
Copy Markdown
Contributor

In general replacing code in the templates with code in erfa_generator.py allows reducing code duplication, and Python code can be checked with tools such as Ruff or Mypy. In this particular case there is an additional benefit because implementing Argument.memcpy_if_needed allows Argument.size to be removed.

Implementing the property allows moving code from the `erfa/ufunc.c`
template to `erfa_generator.py`, where it can be checked with tools such
as Ruff or Mypy. Furthermore, the `Argument.size` property is no longer
needed.
@avalentino avalentino merged commit dff8389 into liberfa:main Jun 24, 2026
27 checks passed
@eerovaher eerovaher deleted the Argument-memcpy_if_needed branch June 24, 2026 15:35
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