diff options
author | 2023-06-08 13:44:49 +0200 | |
---|---|---|
committer | 2023-06-08 14:14:36 +0200 | |
commit | a7653cc05092aa5b009172c531e4f729c678a858 (patch) | |
tree | 3ef77dd6af020d06cc37b25faf277834f94ef093 /rtic-macros/src/syntax/ast.rs | |
parent | 599793829377a64603e93a1136360f17d3bade93 (diff) | |
download | rtic-a7653cc05092aa5b009172c531e4f729c678a858.tar.gz rtic-a7653cc05092aa5b009172c531e4f729c678a858.tar.zst rtic-a7653cc05092aa5b009172c531e4f729c678a858.zip |
allow init and idle to be externed
Diffstat (limited to 'rtic-macros/src/syntax/ast.rs')
-rw-r--r-- | rtic-macros/src/syntax/ast.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtic-macros/src/syntax/ast.rs b/rtic-macros/src/syntax/ast.rs index 3f4956cc..f0067b8e 100644 --- a/rtic-macros/src/syntax/ast.rs +++ b/rtic-macros/src/syntax/ast.rs @@ -91,6 +91,9 @@ pub struct Init { /// The name of the user provided local resources struct pub user_local_struct: Ident, + + /// The init function is declared externally + pub is_extern: bool, } /// `init` context metadata @@ -127,6 +130,9 @@ pub struct Idle { /// The statements that make up this `idle` function pub stmts: Vec<Stmt>, + + /// The idle function is declared externally + pub is_extern: bool, } /// `idle` context metadata |