Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSUB.h: simplify XS_INTERNAL/XS_EXTERNAL macros #22890

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

mauke
Copy link
Contributor

@mauke mauke commented Jan 6, 2025

Ever since __attribute__unused__ was added to the XSPROTO definition, the explicit defined(HASATTRIBUTE_UNUSED) check has become redundant.

Also, the XS_INTERNAL definitions are functionally equivalent in all branches, so replace them by a single unconditional definition.


  • This set of changes does not require a perldelta entry.

Ever since `__attribute__unused__` was added to the XSPROTO definition,
the explicit `defined(HASATTRIBUTE_UNUSED)` check has become redundant.

Also, the XS_INTERNAL definitions are functionally equivalent in all
branches, so replace them by a single unconditional definition.
@mauke mauke merged commit 7911101 into Perl:blead Jan 7, 2025
33 of 34 checks passed
@mauke mauke deleted the xsub-simplify-xsproto branch January 7, 2025 06:48
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