Skip to content

Commit

Permalink
noinline
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jun 5, 2021
1 parent 4174e62 commit 42e943d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/jsonutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ macro initCaseObject(T: typedesc, fun: untyped): untyped =
`fun`(`key2`, typedesc[`typ`])
result.add newTree(nnkExprColonExpr, key, val)

proc raiseJsonException(condStr: string, msg: string) =
proc raiseJsonException(condStr: string, msg: string) {.noinline.} =
# just pick 1 exception type for simplicity; other choices would be:
# JsonError, JsonParser, JsonKindError
raise newException(ValueError, condStr & " failed: " & msg)
Expand Down

0 comments on commit 42e943d

Please sign in to comment.