Created
June 6, 2017 15:51
-
-
Save michaelfairley/4474b060aa89edea22cbf977411e0e46 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
#![cfg_attr(any(target_os = "ios", target_os = "android"), no_main] | |
fn main() { | |
main2(); | |
} | |
#[cfg(any(target_os = "ios", target_os = "android"))] | |
#[no_mangle] | |
#[allow(non_snake_case)] | |
pub extern "C" fn SDL_main() -> i32 { | |
main2(); | |
0 | |
} | |
fn main2() { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment