aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sys.rs
blob: 0eafc5eec29548d3b6bc270d81a55d543b8f96cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export rustrt;

native "rust" mod rustrt {

  // 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;

  fn last_os_error() -> str;
  fn size_of[T]() -> uint;
  fn align_of[T]() -> uint;
  fn refcount[T](@T t) -> uint;
  fn gc();
}