aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/resources.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-04-22 18:38:42 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-04-22 18:38:42 +0200
commit50f26e78eda57cb1f9f815aa93b357c2cd1a0205 (patch)
tree376b2ad7361629a4d11401e443de947538e2262a /macros/src/codegen/resources.rs
parent6aa0fb450f417ce899b43f4539eb226b391a0f2e (diff)
downloadrtic-50f26e78eda57cb1f9f815aa93b357c2cd1a0205.tar.gz
rtic-50f26e78eda57cb1f9f815aa93b357c2cd1a0205.tar.zst
rtic-50f26e78eda57cb1f9f815aa93b357c2cd1a0205.zip
Keep comments
Diffstat (limited to 'macros/src/codegen/resources.rs')
-rw-r--r--macros/src/codegen/resources.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/src/codegen/resources.rs b/macros/src/codegen/resources.rs
index 53523696..a623ea60 100644
--- a/macros/src/codegen/resources.rs
+++ b/macros/src/codegen/resources.rs
@@ -31,7 +31,6 @@ pub fn codegen(
let mangled_name = util::mark_internal_ident(&name);
{
- // TODO: do we really need this in the single core case
// late resources in `util::link_section_uninit`
let section = if expr.is_none() {
util::link_section_uninit(true)
@@ -56,6 +55,7 @@ pub fn codegen(
let attrs = &res.attrs;
+ // For future use
// let doc = format!(" RTIC internal: {}:{}", file!(), line!());
mod_app.push(quote!(
#[allow(non_upper_case_globals)]
@@ -69,6 +69,7 @@ pub fn codegen(
}
let r_prop = &res.properties;
+ // For future use
// let doc = format!(" RTIC internal: {}:{}", file!(), line!());
if !r_prop.task_local && !r_prop.lock_free {
@@ -122,6 +123,7 @@ pub fn codegen(
None => 0,
};
+ // For future use
// let doc = format!(" RTIC internal ({} resource): {}:{}", doc, file!(), line!());
mod_app.push(util::impl_mutex(