-
-
Save bitemyapp/0700e49f0fb8927e048e114e9db2266b to your computer and use it in GitHub Desktop.
This file contains hidden or 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