diff options
author | 2018-04-24 20:50:13 +0200 | |
---|---|---|
committer | 2018-04-24 20:50:13 +0200 | |
commit | 9976eb18cfe753dd388504c7ef54fb0de6a56a02 (patch) | |
tree | e8909d795f91d7f4bbf222536cd61ea9a8a4939d | |
parent | 45803fac793c65539fa11a11a6e5f475b9058b38 (diff) | |
download | cortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.tar.gz cortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.tar.zst cortex-m-9976eb18cfe753dd388504c7ef54fb0de6a56a02.zip |
fix typo in export name
-rw-r--r-- | cortex-m-rt/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index f2a7929..fe2156f 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -182,9 +182,10 @@ macro_rules! exception { f() } }; + (HardFault, $path:path) => { #[allow(non_snake_case)] - #[export_name = "HardFaultr"] + #[export_name = "HardFault"] pub unsafe extern "C" fn __impl_HardFault() { // XXX should we really prevent this handler from returning? // validate the signature of the user provided handler @@ -193,6 +194,7 @@ macro_rules! exception { f() } }; + // NOTE Unfortunately, this will end up leaking `$exception` into the function call namespace. // But the damage is somewhat reduced by having `$exception` not being a `snake_case` function. ($ExceptionName:ident, $path:path) => { |