extern fns require named parameters

Not sure the example is going to stay, but I can try to pass Travis for the bragging rights.
This commit is contained in:
Alex Burka 2016-06-13 21:10:12 -04:00 committed by Alex Burka
parent 1cceca8dfd
commit fae3335272

@ -600,7 +600,7 @@ use std::os::raw::c_int;
extern "C" {
/// Register the callback.
fn register(Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
fn register(cb: Option<extern "C" fn(Option<extern "C" fn(c_int) -> c_int>, c_int) -> c_int>);
}
/// This fairly useless function receives a function pointer and an integer