aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/src/codegen
diff options
context:
space:
mode:
authorGravatar datdenkikniet <jcdra1@gmail.com> 2023-04-13 22:13:40 +0200
committerGravatar datdenkikniet <jcdra1@gmail.com> 2023-04-15 19:19:49 +0200
commit2ba09dd68d73d624af75be4880df36ce82efe2bc (patch)
treec075eb1e75430bf4fb6d2b8bf2b9c2de9442a1e0 /rtic-macros/src/codegen
parent68ccf0423d27041c35002f9a86bb0e764e3782b3 (diff)
downloadrtic-2ba09dd68d73d624af75be4880df36ce82efe2bc.tar.gz
rtic-2ba09dd68d73d624af75be4880df36ce82efe2bc.tar.zst
rtic-2ba09dd68d73d624af75be4880df36ce82efe2bc.zip
rtic-macros: wrap everything in macro_rules! to improve the error experience and
royally **** up the DX experience (for lib.rs in rtic-macros, at least :P)
Diffstat (limited to 'rtic-macros/src/codegen')
-rw-r--r--rtic-macros/src/codegen/bindings.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/rtic-macros/src/codegen/bindings.rs b/rtic-macros/src/codegen/bindings.rs
index 6c214cdb..c328ee0b 100644
--- a/rtic-macros/src/codegen/bindings.rs
+++ b/rtic-macros/src/codegen/bindings.rs
@@ -1,10 +1,3 @@
-#[cfg(not(any(
- feature = "cortex-m-source-masking",
- feature = "cortex-m-basepri",
- feature = "test-template"
-)))]
-compile_error!("No backend selected");
-
#[cfg(any(feature = "cortex-m-source-masking", feature = "cortex-m-basepri"))]
pub use cortex::*;