Skip to content

Commit

Permalink
[DOC] Stop mentioning Qfalse==0 for C extensions
Browse files Browse the repository at this point in the history
See [Feature #18397] for detail. Follow up for
b859397.

[ci skip]

Co-authored-by: Koichi Sasada <[email protected]>
  • Loading branch information
XrXr and ko1 authored Dec 9, 2021
1 parent b859397 commit 74159f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/extension.ja.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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で大域変数を使って情報を共有できます.共有できる大域
Expand Down

0 comments on commit 74159f7

Please sign in to comment.