object_dynamic_cast_assert

Function object_dynamic_cast_assert 

Source
pub unsafe extern "C" fn object_dynamic_cast_assert(
    obj: *mut Object,
    typename: *const i8,
    file: *const i8,
    line: i32,
    func: *const i8,
) -> *mut Object
Expand description

object_dynamic_cast_assert:

See object_dynamic_cast() for a description of the parameters of this function. The only difference in behavior is that this function asserts instead of returning #NULL on failure if QOM cast debugging is enabled. This function is not meant to be called directly, but only through the wrapper macro OBJECT_CHECK.