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

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
This commit is contained in:
nobu 2016-05-18 01:21:57 +00:00
parent 4a9705d6e3
commit 6a69ab937c
2 changed files with 10 additions and 0 deletions

View file

@ -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)

View file

@ -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