2010-06-27 22:48:28 -05:00
|
|
|
export rustrt;
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
native "rust" mod rustrt {
|
2010-06-27 22:48:28 -05:00
|
|
|
|
|
|
|
// Explicitly re-export native stuff we want to be made
|
|
|
|
// available outside this crate. Otherwise it's
|
|
|
|
// visible-in-crate, but not re-exported.
|
|
|
|
|
|
|
|
export last_os_error;
|
|
|
|
export size_of;
|
|
|
|
export align_of;
|
|
|
|
export refcount;
|
|
|
|
export gc;
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
fn last_os_error() -> str;
|
|
|
|
fn size_of[T]() -> uint;
|
|
|
|
fn align_of[T]() -> uint;
|
|
|
|
fn refcount[T](@T t) -> uint;
|
2010-06-26 01:57:30 -05:00
|
|
|
fn gc();
|
2010-07-05 16:43:40 -05:00
|
|
|
fn unsupervise();
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
|
|
|
|