Function panda_sys::object_class_dynamic_cast_assert[][src]

pub unsafe extern "C" fn object_class_dynamic_cast_assert(
    klass: *mut ObjectClass,
    typename: *const c_char,
    file: *const c_char,
    line: c_int,
    func: *const c_char
) -> *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.