3 releases
Uses old Rust 2015
0.0.3 | Jan 19, 2015 |
---|---|
0.0.2 | Dec 21, 2014 |
0.0.1 | Dec 13, 2014 |
#4 in #typedef
Used in allocator
3KB
A small macro to deal with the libc typedef hell.
#![feature(phase)]
extern crate core;
#[phase(plugin)] extern crate checked_cast;
let foo: c_long = -1;
let bar: c_uint = checked_cast!(foo, c_uint).unwrap(); // panic