object_class_dynamic_cast_assert

Function object_class_dynamic_cast_assert 

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

object_class_dynamic_cast_assert: @klass: The #ObjectClass to attempt to cast. @typename: The QOM typename of the class to cast to.

See object_class_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 macros OBJECT_CLASS_CHECK and INTERFACE_CHECK.