aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/dispatchers.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge.aparicio@ferrous-systems.com> 2020-05-29 14:50:28 +0200
committerGravatar Jorge Aparicio <jorge.aparicio@ferrous-systems.com> 2020-05-29 14:50:28 +0200
commit0ad311074e3d49a66174f59c47c4d6183ce7e3a0 (patch)
tree0dc14a960059209d864629c3134c318c978f1686 /macros/src/codegen/dispatchers.rs
parent1e827e24d024e910b44f6cc6db278e4c66a77683 (diff)
downloadrtic-0ad311074e3d49a66174f59c47c4d6183ce7e3a0.tar.gz
rtic-0ad311074e3d49a66174f59c47c4d6183ce7e3a0.tar.zst
rtic-0ad311074e3d49a66174f59c47c4d6183ce7e3a0.zip
allow handlers to be named 'main'
`#[init]`, `#[idle]` and `#[task]` handlers can now be named `main` fixes #311
Diffstat (limited to 'macros/src/codegen/dispatchers.rs')
-rw-r--r--macros/src/codegen/dispatchers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/dispatchers.rs b/macros/src/codegen/dispatchers.rs
index 9a9cb102..1400786b 100644
--- a/macros/src/codegen/dispatchers.rs
+++ b/macros/src/codegen/dispatchers.rs
@@ -141,7 +141,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
#let_instant
#fq.split().0.enqueue_unchecked(index);
let priority = &rtfm::export::Priority::new(PRIORITY);
- #name(
+ crate::#name(
#locals_new
#name::Context::new(priority #instant)
#(,#pats)*