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

Allow boolean arguments to rb_attr and rb_define_attr #889

Merged
merged 1 commit into from Jun 7, 2022

Conversation

nobu
Copy link
Member

@nobu nobu commented Jun 7, 2022

Currently only literal 0 and 1 are accepted as read/write flags.
This patch allows other boolean arguments, C macros (FALSE/TRUE), Ruby VALUEs (Qfalse/Qtrue), and C99 bools (false/true), as well.

Currently only literal `0` and `1` are accepted as `read`/`write`
flags.
This patch allows other boolean arguments, C macros (`FALSE`/`TRUE`),
Ruby `VALUE`s (`Qfalse`/`Qtrue`), and C99 `bool`s (`false`/`true`), as
well.
@nobu nobu merged commit 646e98f into ruby:master Jun 7, 2022
@nobu nobu deleted the attr-args branch June 7, 2022 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant