Commit d62bcc2c authored by Daniel Garcia Moreno's avatar Daniel Garcia Moreno Committed by Alexandre Franke

Replace tabs with spaces in app macro

parent bdb4d5c7
Pipeline #68374 passed with stages
in 35 minutes and 43 seconds
......@@ -26,16 +26,16 @@ static mut OP: Option<SyncWeak<Mutex<AppOp>>> = None;
#[macro_export]
macro_rules! APPOP {
($fn: ident, ($($x:ident),*) ) => {{
let ctx = glib::MainContext::default();
ctx.invoke(move || {
$( let $x = $x.clone(); )*
if let Some(op) = App::get_op() {
op.lock().unwrap().$fn($($x),*);
}
});
let ctx = glib::MainContext::default();
ctx.invoke(move || {
$( let $x = $x.clone(); )*
if let Some(op) = App::get_op() {
op.lock().unwrap().$fn($($x),*);
}
});
}};
($fn: ident) => {{
APPOP!($fn, ( ) );
APPOP!($fn, ( ) );
}}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment