mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Merge pull request #166 from Cifram/master
Add semicolons after macro invocations, as required by the latest nightly.
This commit is contained in:
@@ -11,7 +11,7 @@ use std::io::stdio::stdin;
|
|||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
android_start!(main)
|
android_start!(main);
|
||||||
|
|
||||||
#[cfg(not(feature = "window"))]
|
#[cfg(not(feature = "window"))]
|
||||||
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ extern crate glutin;
|
|||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
android_start!(main)
|
android_start!(main);
|
||||||
|
|
||||||
#[cfg(not(feature = "window"))]
|
#[cfg(not(feature = "window"))]
|
||||||
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ extern crate glutin;
|
|||||||
mod support;
|
mod support;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
android_start!(main)
|
android_start!(main);
|
||||||
|
|
||||||
#[cfg(not(feature = "window"))]
|
#[cfg(not(feature = "window"))]
|
||||||
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
fn main() { println!("This example requires glutin to be compiled with the `window` feature"); }
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use winapi;
|
|||||||
///
|
///
|
||||||
/// We only have one window per thread. We still store the HWND in case where we
|
/// We only have one window per thread. We still store the HWND in case where we
|
||||||
/// receive an event for another window.
|
/// receive an event for another window.
|
||||||
thread_local!(static WINDOW: Rc<RefCell<Option<(winapi::HWND, Sender<Event>)>>> = Rc::new(RefCell::new(None)))
|
thread_local!(static WINDOW: Rc<RefCell<Option<(winapi::HWND, Sender<Event>)>>> = Rc::new(RefCell::new(None)));
|
||||||
|
|
||||||
pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: String,
|
pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: String,
|
||||||
builder_monitor: Option<super::MonitorID>,
|
builder_monitor: Option<super::MonitorID>,
|
||||||
|
|||||||
Reference in New Issue
Block a user