Skip to content

Commit

Permalink
Workaround Nim regression #23611 related to dirty template
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed May 20, 2024
1 parent 1ac1d69 commit 16f0395
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json_serialization/lexer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ template requireNextChar(lex: JsonLexer): char =
lex.read()

template enterNestedStructure(lex: JsonLexer, action: untyped) {.dirty.} =
bind errNestedDepthLimit
inc lex.depthLimit
if lex.conf.nestedDepthLimit > 0 and
lex.depthLimit > lex.conf.nestedDepthLimit:
Expand Down

0 comments on commit 16f0395

Please sign in to comment.