Skip to content

Commit 6ee2af5

Browse files
committed
_ty ?
1 parent 3d80886 commit 6ee2af5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ macro_rules! c_enum {
227227
$($variant:ident $(= $value:tt /* literal */)* /* ? */,)+
228228
}
229229
) => {
230-
pub type $ty_name = c_enum!(@ty $($repr)*);
230+
pub type $ty_name = c_enum!(@_ty $($repr)*);
231231
c_enum!(@one; $ty_name; 0; $($variant $(= $value)*,)+);
232232
};
233233
// Matcher for a single variant
@@ -250,8 +250,8 @@ macro_rules! c_enum {
250250
};
251251

252252
// Use a specific type if provided, otherwise default to `c_uint`
253-
(@ty $repr:ty) => { $repr };
254-
(@ty) => { /* $crate */ crate::c_uint };
253+
(@_ty $repr:ty) => { $repr };
254+
(@_ty) => { /* $crate */ crate::c_uint };
255255
}
256256

257257
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',

0 commit comments

Comments
 (0)