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 2957794 commit 948e1e1Copy full SHA for 948e1e1
src/de.rs
@@ -180,9 +180,11 @@ macro_rules! if_checking_recursion_limit {
180
181
macro_rules! check_recursion_prefix {
182
($self_: ident, $error: path) => {
183
- $self_.remaining_depth -= 1;
184
- if $self_.remaining_depth == 0 {
185
- return $error($self_.error(ErrorCode::RecursionLimitExceeded));
+ if_checking_recursion_limit! {
+ $self_.remaining_depth -= 1;
+ if $self_.remaining_depth == 0 {
186
+ return $error($self_.error(ErrorCode::RecursionLimitExceeded));
187
+ }
188
}
189
};
190
0 commit comments