summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: cfc5629e91777c689149e55ff026ad50c83a8ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate rusty_microphone;

#[cfg(not(target_os = "emscripten"))]
fn main() {
    use rusty_microphone::*;

    let gui_result = gui::start_gui();
    if gui_result.is_err() {
        println!("Failed to initialize");
        return;
    }
}

#[cfg(target_os = "emscripten")]
fn main() {
    println!("Hello Emscripten");
}