extern "C" fn tuple_add(env: *mut ErlNifEnv,
                        argc: c_int,
                        args: *const ERL_NIF_TERM)
                        -> ERL_NIF_TERM {
    unsafe {
        let mut a: c_int = uninitialized();
        let mut b: c_int = uninitialized();
        let mut size: c_int = uninitialized();
        let mut tup: *const ERL_NIF_TERM = uninitialized();
        if argc == 1 && 0 != enif_get_tuple(env, *args, &mut size, &mut tup) && size == 2 &&
           0 != enif_get_int(env, *tup, &mut a) &&
           0 != enif_get_int(env, *tup.offset(1), &mut b) {
            enif_make_int(env, a + b)
        } else {
            enif_make_badarg(env)
        }
    }
}
/// Add integers provided in a 2-tuple. `tuple_add({A,B}) -> A+B.`
Add integers provided in a 2-tuple.
Add integers provided in a 2 - tuple .
extern "C" fn tuple_add(env: *mut ErlNifEnv,
                        argc: c_int,
                        args: *const ERL_NIF_TERM)
                        -> ERL_NIF_TERM {
    unsafe {
        let mut a: c_int = uninitialized();
        let mut b: c_int = uninitialized();
        let mut size: c_int = uninitialized();
        let mut tup: *const ERL_NIF_TERM = uninitialized();
        if argc == 1 && 0 != enif_get_tuple(env, *args, &mut size, &mut tup) && size == 2 &&
           0 != enif_get_int(env, *tup, &mut a) &&
           0 != enif_get_int(env, *tup.offset(1), &mut b) {
            enif_make_int(env, a + b)
        } else {
            enif_make_badarg(env)
        }
    }
}
extern " " fn tuple_add ( env : * mut ErlNifEnv , argc : c_int , args : * const ERL_NIF_TERM ) -> ERL_NIF_TERM { unsafe { let mut a : c_int = uninitialized ( ) ; let mut b : c_int = uninitialized ( ) ; let mut size : c_int = uninitialized ( ) ; let mut tup : * const ERL_NIF_TERM = uninitialized ( ) ; if argc == 1 && 0 != enif_get_tuple ( env , * args , & mut size , & mut tup ) && size == 2 && 0 != enif_get_int ( env , * tup , & mut a ) && 0 != enif_get_int ( env , * tup . offset ( 1 ) , & mut b ) { enif_make_int ( env , a + b ) } else { enif_make_badarg ( env ) } } }
Add integers provided in a 2-tuple.
Add integers provided in a 2 - tuple .
env
*mut ErlNifEnv
argc
c_int
args
*const ERL_NIF_TERM
env
*mut ErlNifEnv
argc
c_int
args
*const ERL_NIF_TERM