mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Fixing tests
This commit is contained in:
parent
633012190b
commit
98d2af9d73
75 changed files with 591 additions and 1183 deletions
|
|
@ -18,6 +18,8 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
Context::SoftwareTask(name) => &app.software_tasks[name].args.local_resources,
|
||||
};
|
||||
|
||||
let task_name = util::get_task_name(ctxt, app);
|
||||
|
||||
let mut fields = vec![];
|
||||
let mut values = vec![];
|
||||
let mut has_cfgs = false;
|
||||
|
|
@ -41,7 +43,13 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
quote!('a)
|
||||
};
|
||||
|
||||
let mangled_name = util::mark_internal_ident(&util::static_local_resource_ident(name));
|
||||
let mangled_name = if matches!(task_local, TaskLocal::External) {
|
||||
util::mark_internal_ident(&util::static_local_resource_ident(name))
|
||||
} else {
|
||||
util::mark_internal_ident(&util::declared_static_local_resource_ident(
|
||||
name, &task_name,
|
||||
))
|
||||
};
|
||||
|
||||
fields.push(quote!(
|
||||
#(#cfgs)*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue