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
This commit is contained in:
parent
49432957c7
commit
5d0bf9ae15
@ -1223,6 +1223,7 @@ Data_Get_Struct(data, type, sval) ::
|
|||||||
|
|
||||||
== 型チェック
|
== 型チェック
|
||||||
|
|
||||||
|
RB_TYPE_P(value, type)
|
||||||
TYPE(value)
|
TYPE(value)
|
||||||
FIXNUM_P(value)
|
FIXNUM_P(value)
|
||||||
NIL_P(value)
|
NIL_P(value)
|
||||||
|
@ -1145,6 +1145,10 @@ Data_Get_Struct(data, type, sval) ::
|
|||||||
|
|
||||||
== Checking Data Types
|
== Checking Data Types
|
||||||
|
|
||||||
|
RB_TYPE_P(value, type) ::
|
||||||
|
|
||||||
|
Is +value+ an internal type (T_NIL, T_FIXNUM, etc.)?
|
||||||
|
|
||||||
TYPE(value) ::
|
TYPE(value) ::
|
||||||
|
|
||||||
Internal type (T_NIL, T_FIXNUM, etc.)
|
Internal type (T_NIL, T_FIXNUM, etc.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user