mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 21:43:33 +00:00
This commit is contained in:
@@ -35,6 +35,9 @@ import
|
||||
|
||||
from modulegraphs import getBody
|
||||
|
||||
when defined(nimCompilerStackraceHints):
|
||||
import std/stackframes
|
||||
|
||||
const
|
||||
debugEchoCode* = defined(nimVMDebug)
|
||||
|
||||
@@ -2000,6 +2003,8 @@ proc procIsCallback(c: PCtx; s: PSym): bool =
|
||||
dec i
|
||||
|
||||
proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
|
||||
when defined(nimCompilerStackraceHints):
|
||||
setFrameMsg c.config$n.info & " " & $n.kind & " " & $flags
|
||||
case n.kind
|
||||
of nkSym:
|
||||
let s = n.sym
|
||||
|
||||
Reference in New Issue
Block a user