Skip to main content

rb_const_defined

Function rb_const_defined 

Source
pub unsafe extern "C" fn rb_const_defined(
    space: VALUE,
    name: ID,
) -> c_int
Expand description

Queries if the constant is defined at the namespace.

@param[in] space Target namespace. @param[in] name Target name to query. @retval RUBY_Qtrue There is a constant. @retval RUBY_Qfalse No such constant.

@internal

ยงThe return values are not typo! This function returns ruby values casted to int. Completely brain-damaged design.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8