Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/objc/src/message/apple/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 734 B image not shown  

SSL x86_64.rs   Sprache: unbekannt

 
rahmenlose Ansicht.rs DruckansichtUnknown {[0] [0] [0]}zum Wurzelverzeichnis wechseln

use std::mem;

use runtime::Imp;

extern {
    fn objc_msgSend();
    fn objc_msgSend_stret();

    fn objc_msgSendSuper();
    fn objc_msgSendSuper_stret();
}

pub fn msg_send_fn<R>() -> Imp {
    // If the size of an object is larger than two eightbytes, it has class MEMORY.
    // If the type has class MEMORY, then the caller provides space for the return
    // value and passes the address of this storage.
    // <http://people.freebsd.org/~obrien/amd64-elf-abi.pdf>

    if mem::size_of::<R>() <= 16 {
        objc_msgSend
    } else {
        objc_msgSend_stret
    }
}

pub fn msg_send_super_fn<R>() -> Imp {
    if mem::size_of::<R>() <= 16 {
        objc_msgSendSuper
    } else {
        objc_msgSendSuper_stret
    }
}

[Verzeichnis aufwärts0.284unsichere Verbindung]