Skip to content

Commit

Permalink
Update chronicles.nim
Browse files Browse the repository at this point in the history
Co-authored-by: Jacek Sieka <jacek@status.im>
  • Loading branch information
tersec and arnetheduck authored Sep 11, 2024
1 parent 1479ae0 commit d357e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chronicles.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ macro logScopeIMPL(prevScopes: typed,
result.add chroniclesExportNode

let activeScope = id("activeChroniclesScope", isPublic)
when NimMajor >= 2:
when defined(nimHasTemplateRedefinitionPragma):
result.add quote do:
template `activeScope` {.redefine, used.} =
`newRevision`
Expand Down

0 comments on commit d357e28

Please sign in to comment.