Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Stack-traces/Nim/stack-traces.nim
Normal file
12
Task/Stack-traces/Nim/stack-traces.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
proc g() =
|
||||
# Writes the current stack trace to stderr.
|
||||
writeStackTrace()
|
||||
# Or fetch the stack trace entries for the current stack trace:
|
||||
echo "----"
|
||||
for e in getStackTraceEntries():
|
||||
echo e.filename, "@", e.line, " in ", e.procname
|
||||
|
||||
proc f() =
|
||||
g()
|
||||
|
||||
f()
|
||||
Loading…
Add table
Add a link
Reference in a new issue