pub unsafe fn menu_clear_history(obj: *mut Object) -> Result<()>
This function is unsafe because it may dereference raw pointers.