mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
add binds example and make it work
This commit is contained in:
parent
a233808280
commit
11f795aaf6
4 changed files with 55 additions and 2 deletions
|
|
@ -1128,7 +1128,7 @@ fn exceptions(ctxt: &mut Context, app: &App, analysis: &Analysis) -> Vec<proc_ma
|
|||
};
|
||||
|
||||
let locals = mk_locals(&exception.statics, false);
|
||||
let symbol = ident.to_string();
|
||||
let symbol = exception.args.binds.as_ref().unwrap_or(ident).to_string();
|
||||
let alias = ctxt.ident_gen.mk_ident(None, false);
|
||||
let unsafety = &exception.unsafety;
|
||||
quote!(
|
||||
|
|
@ -1214,7 +1214,7 @@ fn interrupts(
|
|||
|
||||
let locals = mk_locals(&interrupt.statics, false);
|
||||
let alias = ctxt.ident_gen.mk_ident(None, false);
|
||||
let symbol = ident.to_string();
|
||||
let symbol = interrupt.args.binds.as_ref().unwrap_or(ident).to_string();
|
||||
let unsafety = &interrupt.unsafety;
|
||||
scoped.push(quote!(
|
||||
// unsafe trampoline to deter end-users from calling this non-reentrant function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue