diff options
author | 2020-04-22 14:18:32 +0000 | |
---|---|---|
committer | 2020-04-22 14:18:32 +0000 | |
commit | 7406f77a4ec163165fa2f89e8e9351b792e305e3 (patch) | |
tree | 4d2563b527be8f59b8c013e84df47da46ec27b22 /macros/src/codegen.rs | |
parent | bb59606b7cf14105492c034c9875edc4c1725da0 (diff) | |
parent | f58f37b2b9a292a0e0d0be7d8afbe4df651c3432 (diff) | |
download | rtic-7406f77a4ec163165fa2f89e8e9351b792e305e3.tar.gz rtic-7406f77a4ec163165fa2f89e8e9351b792e305e3.tar.zst rtic-7406f77a4ec163165fa2f89e8e9351b792e305e3.zip |
Merge #306
306: Retain cfg-attributes on resources r=korken89 a=AfoHT
When rust 1.43 lands as stable this will resolve #301 and allow for the kind of conditional compilation exemplified in the issue.
Tested on beta and nightly.
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'macros/src/codegen.rs')
-rw-r--r-- | macros/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 02138481..7d0d1220 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -39,7 +39,7 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 { let (const_app_init, root_init, user_init, call_init) = init::codegen(core, app, analysis, extra); - let (const_app_post_init, post_init_stmts) = post_init::codegen(core, analysis, extra); + let (const_app_post_init, post_init_stmts) = post_init::codegen(core, &app, analysis, extra); let (const_app_idle, root_idle, user_idle, call_idle) = idle::codegen(core, app, analysis, extra); |