aboutsummaryrefslogtreecommitdiff
path: root/src/lib/box.rs
blob: 4429fd6a0b0d1c90154a0482059a51df3e6fb5a1 (plain) (blame)
1
2
3
4
5
6
7
8
export rustrt;

native "rust" mod rustrt {
    fn rust_ptr_eq[T](@T a, @T b) -> int;
}

fn ptr_eq[T](@T a, @T b) -> bool { ret rustrt::rust_ptr_eq[T](a, b) != 0; }