summary refs log tree commit diff
path: root/src/test/auxiliary/cci_impl_lib.rs
blob: a14dbc2eedd7535c81061624d52d52b3efe45fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[link(name="cci_impl_lib", vers="0.0")];

impl helpers for uint {
    #[inline]
    fn to(v: uint, f: fn(uint)) {
        let mut i = self;
        while i < v {
            f(i);
            i += 1u;
        }
    }
}