first steps in adding template/macro calls to stack traces
This commit is contained in:
parent
2775cda6e1
commit
ee67a67ac4
17 changed files with 96 additions and 38 deletions
|
|
@ -21,7 +21,7 @@ type
|
|||
nnkInt16Lit, nnkInt32Lit, nnkInt64Lit, nnkUIntLit, nnkUInt8Lit,
|
||||
nnkUInt16Lit, nnkUInt32Lit, nnkUInt64Lit, nnkFloatLit,
|
||||
nnkFloat32Lit, nnkFloat64Lit, nnkFloat128Lit, nnkStrLit, nnkRStrLit,
|
||||
nnkTripleStrLit, nnkNilLit, nnkMetaNode, nnkDotCall,
|
||||
nnkTripleStrLit, nnkNilLit, nnkComesFrom, nnkDotCall,
|
||||
nnkCommand, nnkCall, nnkCallStrLit, nnkInfix,
|
||||
nnkPrefix, nnkPostfix, nnkHiddenCallConv,
|
||||
nnkExprEqExpr,
|
||||
|
|
|
|||
|
|
@ -70,6 +70,18 @@ proc getFrame*(): PFrame {.compilerRtl, inl.} = framePtr
|
|||
proc popFrame {.compilerRtl, inl.} =
|
||||
framePtr = framePtr.prev
|
||||
|
||||
when false:
|
||||
proc popFrameOfAddr(s: PFrame) {.compilerRtl.} =
|
||||
var it = framePtr
|
||||
if it == s:
|
||||
framePtr = framePtr.prev
|
||||
else:
|
||||
while it != nil:
|
||||
if it == s:
|
||||
framePtr = it.prev
|
||||
break
|
||||
it = it.prev
|
||||
|
||||
proc setFrame*(s: PFrame) {.compilerRtl, inl.} =
|
||||
framePtr = s
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue