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

Quelle  call.rs   Sprache: unbekannt

 
// Copyright © 2017-2018 Mozilla Foundation
//
// This program is made available under an ISC-style license.  See the
// accompanying file LICENSE for details.
#![macro_use]

use std::os::raw::c_int;
use Error;

pub fn cvt_r(ret: c_int) -> Result<(), Error> {
    match ret {
        n if n < 0 => Err(Error::from_raw(n)),
        _ => Ok(()),
    }
}

macro_rules! call {
    (ffi::$p:ident ($($e:expr),*)) => ({
        ::call::cvt_r(ffi::$p($($e),*))
    })
}

[ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ]