cubeb-core 0.34.1

Common types and definitions for cubeb rust and C bindings. Not intended for direct use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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> {
    Error::wrap(ret)
}

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