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

Commits on Jun 7, 2022

  1. Allow boolean arguments to rb_attr and rb_define_attr

    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 committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    169dc02 View commit details
    Browse the repository at this point in the history