Register new snapshots
This commit is contained in:
parent
e02313a172
commit
817576ee70
32 changed files with 32 additions and 1663 deletions
|
|
@ -411,23 +411,6 @@ impl<T:Send> Exclusive<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
mod macro_hack {
|
||||
#[macro_escape];
|
||||
macro_rules! externfn(
|
||||
(fn $name:ident () $(-> $ret_ty:ty),*) => (
|
||||
extern {
|
||||
fn $name() $(-> $ret_ty),*;
|
||||
}
|
||||
);
|
||||
(fn $name:ident ($($arg_name:ident : $arg_ty:ty),*) $(-> $ret_ty:ty),*) => (
|
||||
extern {
|
||||
fn $name($($arg_name : $arg_ty),*) $(-> $ret_ty),*;
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
externfn!(fn rust_create_little_lock() -> rust_little_lock)
|
||||
externfn!(fn rust_destroy_little_lock(lock: rust_little_lock))
|
||||
externfn!(fn rust_lock_little_lock(lock: rust_little_lock))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue