Skip to content

Commit c7416fc

Browse files
committed
Delete switch_break
1 parent 6558323 commit c7416fc

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

libcc2rs-macros/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ pub fn switch(input: TokenStream) -> TokenStream {
1919
switch::expand(input)
2020
}
2121

22-
#[proc_macro]
23-
pub fn switch_break(_input: TokenStream) -> TokenStream {
24-
quote::quote! {
25-
compile_error!("switch_break!() can only be used inside switch!")
26-
}
27-
.into()
28-
}
29-
3022
// goto_block! {
3123
// '<label> => <body>,
3224
// '<label> => <body>,

libcc2rs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ pub use compat::*;
3131
mod va_args;
3232
pub use va_args::*;
3333

34-
pub use libcc2rs_macros::{goto, goto_block, switch, switch_break};
34+
pub use libcc2rs_macros::{goto, goto_block, switch};

0 commit comments

Comments
 (0)