Skip to content

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant