Skip to content

Instantly share code, notes, and snippets.

@bitemyapp
Forked from michaelfairley/main.rs
Created October 8, 2017 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitemyapp/0700e49f0fb8927e048e114e9db2266b to your computer and use it in GitHub Desktop.
Save bitemyapp/0700e49f0fb8927e048e114e9db2266b to your computer and use it in GitHub Desktop.
#![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