We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf7863 commit faaeec3Copy full SHA for faaeec3
src/macros.rs
@@ -85,11 +85,11 @@ macro_rules! static_detour {
85
86
// 6 — argument and return type (return/void)
87
(@parse_prototype
88
- ($($input:tt)*) | ($($argument_type:ty),*) -> $return_type:ty ; $($rest:tt)*) => {
+ ($($input:tt)*) | ($($argument_type:ty),* $(,)?) -> $return_type:ty ; $($rest:tt)*) => {
89
$crate::static_detour!(
90
@parse_terminator ($($input)* ($($argument_type)*) ($return_type)) | ; $($rest)*);
91
};
92
- (@parse_prototype ($($input:tt)*) | ($($argument_type:ty),*) $($rest:tt)*) => {
+ (@parse_prototype ($($input:tt)*) | ($($argument_type:ty),* $(,)?) $($rest:tt)*) => {
93
$crate::static_detour!(@parse_terminator ($($input)* ($($argument_type)*) (())) | $($rest)*);
94
95
0 commit comments