From a191ac36220bba54b1e280ac62f8fa8696d1bb46 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 May 2016 01:21:57 +0000 Subject: extension.rdoc: RB_{INTEGER,FLOAT}_TYPE_P [ci skip] * doc/extension.rdoc, doc/extension.rdoc (Checking Data Types): [DOC] mention RB_INTEGER_TYPE_P and RB_FLOAT_TYPE_P. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/extension.ja.rdoc | 2 ++ doc/extension.rdoc | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc index d89fbd2003..6b3876e9c8 100644 --- a/doc/extension.ja.rdoc +++ b/doc/extension.ja.rdoc @@ -1227,6 +1227,8 @@ Data_Get_Struct(data, type, sval) :: TYPE(value) FIXNUM_P(value) NIL_P(value) + RB_INTEGER_TYPE_P(value) + RB_FLOAT_TYPE_P(value) void Check_Type(VALUE value, int type) SafeStringValue(value) diff --git a/doc/extension.rdoc b/doc/extension.rdoc index c2aff57ffc..1e157f824a 100644 --- a/doc/extension.rdoc +++ b/doc/extension.rdoc @@ -1161,6 +1161,14 @@ NIL_P(value) :: Is +value+ nil? +RB_INTEGER_TYPE_P(value) :: + + Is +value+ an Integer? + +RB_FLOAT_TYPE_P(value) :: + + Is +value+ a Float? + void Check_Type(VALUE value, int type) :: Ensures +value+ is of the given internal +type+ or raises a TypeError -- cgit v1.2.3