aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 01:05:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 01:05:36 +0000
commit310e9adcad24b4ec68abb123fd77503d3b58c9fd (patch)
tree455e70a9781badda8d29938ab396207aeebff346
parent218fd06328af866fb16cb2971844090f503e06bf (diff)
downloadruby-310e9adcad24b4ec68abb123fd77503d3b58c9fd.tar.gz
extension.rdoc: RB_TYPE_P [ci skip]
* doc/extension.rdoc, doc/extension.rdoc (Checking Data Types): [DOC] mention RB_TYPE_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--doc/extension.ja.rdoc1
-rw-r--r--doc/extension.rdoc4
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc
index b6b8623..d89fbd2 100644
--- a/doc/extension.ja.rdoc
+++ b/doc/extension.ja.rdoc
@@ -1223,6 +1223,7 @@ Data_Get_Struct(data, type, sval) ::
== 型チェック
+ RB_TYPE_P(value, type)
TYPE(value)
FIXNUM_P(value)
NIL_P(value)
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index 7677d1a..c2aff57 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -1145,6 +1145,10 @@ Data_Get_Struct(data, type, sval) ::
== Checking Data Types
+RB_TYPE_P(value, type) ::
+
+ Is +value+ an internal type (T_NIL, T_FIXNUM, etc.)?
+
TYPE(value) ::
Internal type (T_NIL, T_FIXNUM, etc.)