File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ macro_rules! c_enum {
227
227
$( $variant: ident $( = $value: tt /* literal */ ) * /* ? */ , ) +
228
228
}
229
229
) => {
230
- pub type $ty_name = c_enum!( @ty $( $repr) * ) ;
230
+ pub type $ty_name = c_enum!( @_ty $( $repr) * ) ;
231
231
c_enum!( @one; $ty_name; 0 ; $( $variant $( = $value) * , ) +) ;
232
232
} ;
233
233
// Matcher for a single variant
@@ -250,8 +250,8 @@ macro_rules! c_enum {
250
250
} ;
251
251
252
252
// 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 } ;
255
255
}
256
256
257
257
// This is a pretty horrible hack to allow us to conditionally mark some functions as 'const',
You can’t perform that action at this time.
0 commit comments