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