aboutsummaryrefslogtreecommitdiff
path: root/src/system/rt.rs
blob: e9514f598ed49e4dffcf00c7b29c6198f31e0884 (plain) (blame)
1
2
3
4
5
6
7
8
9
use std::mem;

//TODO: Handle argc/argv arguments
#[lang = "start"]
#[allow(unused_variables)]
fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize {
    unsafe { mem::transmute::<_, fn()>(main)(); }
    0
}