mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-29 10:43:57 +00:00
first steps in adding template/macro calls to stack traces
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user