Skip to content

Replace MRB_ARGS_ANY usages with explicit argument specs#16

Merged
gemmaro merged 1 commit into
gemmaro:mainfrom
Mukundhan-P:fix-mrb-args-any
Jun 10, 2026
Merged

Replace MRB_ARGS_ANY usages with explicit argument specs#16
gemmaro merged 1 commit into
gemmaro:mainfrom
Mukundhan-P:fix-mrb-args-any

Conversation

@Mukundhan-P

Copy link
Copy Markdown
Contributor

Fixes #15

This PR replaces the remaining MRB_ARGS_ANY usages with explicit argument specifications.

Changes:

  • filename_to_uri_string -> MRB_ARGS_REQ(1) | MRB_ARGS_KEY(1, 0)
  • uri_string_to_filename -> MRB_ARGS_REQ(1) | MRB_ARGS_KEY(1, 0)
  • create_reference -> MRB_ARGS_REQ(1) | MRB_ARGS_KEY(1, 0)

These signatures match the corresponding mrb_get_args definitions and make the API more explicit.

@gemmaro

gemmaro commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Thank you! Sounds good to me.

@gemmaro
gemmaro merged commit 4329a00 into gemmaro:main Jun 10, 2026
8 checks passed
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.

Reduce MRB_ARGS_ANY usages

2 participants