Created
December 28, 2013 18:16
-
-
Save anonymous/8162372 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_uv]; | |
extern mod green; | |
extern mod rustuv; // pull in I/O support | |
#[start] | |
fn start(argc: int, argv: **u8) -> int { | |
do green::start(argc, argv) { | |
main(); | |
} | |
} | |
// This is running in a green thread | |
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_uv]; | |
extern mod native; | |
#[start] | |
fn start(argc: int, argv: **u8) -> int { | |
do native::start(argc, argv) { | |
main(); | |
} | |
} | |
// this is running in a native OS thread | |
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment