add macro for .next().unwrap()

This commit is contained in:
YK 2024-12-01 20:35:18 +03:00
parent 9f353660f1
commit 1670ffc8d7

View File

@ -16,3 +16,9 @@ pub macro p {
$s.parse().unwrap() $s.parse().unwrap()
} }
} }
pub macro n {
($s: expr) => {
$s.next().unwrap()
}
}