[DOC] Added document for rb_check_symbol() [ci skip]
This commit is contained in:
parent
8b8b7c7876
commit
b10c9d2012
12
symbol.c
12
symbol.c
@ -957,6 +957,18 @@ rb_check_id(volatile VALUE *namep)
|
|||||||
return lookup_str_id(name);
|
return lookup_str_id(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns Symbol for the given name if it is interned already, or
|
||||||
|
* nil.
|
||||||
|
*
|
||||||
|
* \param namep the pointer to the name object
|
||||||
|
* \return the Symbol for *namep
|
||||||
|
* \pre the object referred by \p namep must be a Symbol or
|
||||||
|
* a String, or possible to convert with to_str method.
|
||||||
|
* \post the object referred by \p namep is a Symbol or a
|
||||||
|
* String if non-nil value is returned, or is a String
|
||||||
|
* if nil is returned.
|
||||||
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_check_symbol(volatile VALUE *namep)
|
rb_check_symbol(volatile VALUE *namep)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user