aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sys.rs
blob: 18e2d3261c79cd6a27989a01a5a7115f885cf920 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
  fn unsupervise();
}