Added gcsafe pragmas.
h3rald h3rald@h3rald.com
Thu, 31 Dec 2020 13:58:37 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/hastyscribe.nim
→
src/hastyscribe.nim
@@ -62,7 +62,7 @@
if logging.getHandlers().len == 0: newNiftyLogger().addHandler() -proc initFields(fields: HastyFields): HastyFields = +proc initFields(fields: HastyFields): HastyFields {.gcsafe.} = result = initTable[string, proc():string]() for key, value in fields.pairs: result[key] = value@@ -270,7 +270,7 @@ result = result.replace(instance, "")
# Field Usage: # {{$timestamp}} -proc parse_fields(hs: var HastyScribe, document: string): string = +proc parse_fields(hs: var HastyScribe, document: string): string {.gcsafe.} = let peg_field = peg""" field <- '{{' \s* '$' {id} \s* '}}' id <- [a-zA-Z0-9_-]+