1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Stop mentioning Qfalse==0 for C extensions

See [Feature #18397] for detail. Follow up for
b859397e1b.

[ci skip]

Co-authored-by: Koichi Sasada <ko1@atdot.net>
This commit is contained in:
Alan Wu 2021-12-09 13:38:20 -05:00 committed by GitHub
parent b859397e1b
commit 74159f7f3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2021-12-10 03:38:41 +09:00
Merged: https://github.com/ruby/ruby/pull/5240

Merged-By: XrXr

View file

@ -617,12 +617,14 @@ C言語とRubyの間で情報を共有する方法について解説します
Qtrue ::
Qfalse ::
真偽値.QfalseはC言語でも偽とみなされます(つまり0)
真偽値.C言語から見た「true」と「false」
Qnil ::
C言語から見た「nil」
RTEST(obj)というマクロはobjがQfalseかQnilのとき0を返します
=== CとRubyで共有される大域変数
CとRubyで大域変数を使って情報を共有できます共有できる大域