Skip to content

Commit 3577716

Browse files
committed
Add support for pub(crate), pub(super), etc.
1 parent aa0de0c commit 3577716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ macro_rules! libc_enum {
9393
// pub
9494
(
9595
$(#[$enum_attr:meta])*
96-
pub enum $($def:tt)*
96+
pub $(($($scope:tt)*))* enum $($def:tt)*
9797
) => {
9898
libc_enum! {
99-
@(pub)
99+
@(pub $(($($scope)*))*)
100100
$(#[$enum_attr])*
101101
enum $($def)*
102102
}

0 commit comments

Comments
 (0)