mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-25 00:35:26 +00:00
use -d:nimCompilerStackraceHints in more places (#16400)
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
|
||||
# included from cgen.nim
|
||||
|
||||
when defined(nimCompilerStackraceHints):
|
||||
import std/stackframes
|
||||
|
||||
proc getNullValueAuxT(p: BProc; orig, t: PType; obj, constOrNil: PNode,
|
||||
result: var Rope; count: var int;
|
||||
isConst: bool, info: TLineInfo)
|
||||
@@ -2643,6 +2646,8 @@ proc exprComplexConst(p: BProc, n: PNode, d: var TLoc) =
|
||||
d.storage = OnStatic
|
||||
|
||||
proc expr(p: BProc, n: PNode, d: var TLoc) =
|
||||
when defined(nimCompilerStackraceHints):
|
||||
setFrameMsg p.config$n.info & " " & $n.kind
|
||||
p.currLineInfo = n.info
|
||||
|
||||
case n.kind
|
||||
|
||||
Reference in New Issue
Block a user