From 42e943dfcc29085c9ce533794b17e8c63fe3b909 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Fri, 4 Jun 2021 23:41:54 -0700 Subject: [PATCH] noinline --- lib/std/jsonutils.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/jsonutils.nim b/lib/std/jsonutils.nim index 1373d6af1fda2..c141985d35975 100644 --- a/lib/std/jsonutils.nim +++ b/lib/std/jsonutils.nim @@ -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)