aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/module.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-07-07 21:03:56 +0200
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-07-07 21:04:31 +0200
commitd7393c5b27fc95f3569d12137ee0c4d03ff7e2ba (patch)
treeb90e094920cb859bb9e401f3acdddcadf675c834 /macros/src/codegen/module.rs
parentef5307d83a1d62df0569d78db75d4006147c927d (diff)
downloadrtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.tar.gz
rtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.tar.zst
rtic-d7393c5b27fc95f3569d12137ee0c4d03ff7e2ba.zip
Full local resource syntax working
Diffstat (limited to 'macros/src/codegen/module.rs')
-rw-r--r--macros/src/codegen/module.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/macros/src/codegen/module.rs b/macros/src/codegen/module.rs
index adf64d5b..4fba2f38 100644
--- a/macros/src/codegen/module.rs
+++ b/macros/src/codegen/module.rs
@@ -5,7 +5,8 @@ use rtic_syntax::{ast::App, Context};
pub fn codegen(
ctxt: Context,
- resources_tick: bool,
+ shared_resources_tick: bool,
+ local_resources_tick: bool,
app: &App,
analysis: &Analysis,
extra: &Extra,
@@ -67,7 +68,7 @@ pub fn codegen(
if ctxt.has_local_resources(app) {
let ident = util::local_resources_ident(ctxt, app);
let ident = util::mark_internal_ident(&ident);
- let lt = if resources_tick {
+ let lt = if local_resources_tick {
lt = Some(quote!('a));
Some(quote!('a))
} else {
@@ -90,7 +91,7 @@ pub fn codegen(
if ctxt.has_shared_resources(app) {
let ident = util::shared_resources_ident(ctxt, app);
let ident = util::mark_internal_ident(&ident);
- let lt = if resources_tick {
+ let lt = if shared_resources_tick {
lt = Some(quote!('a));
Some(quote!('a))
} else {