Merge pull request #1075 from flaviut/inlinedocs
Add some documentations and code examples in system
This commit is contained in:
commit
a690e7b267
71 changed files with 2521 additions and 15 deletions
16
tests/misc/tstrace.nim
Normal file
16
tests/misc/tstrace.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Test the new stacktraces (great for debugging!)
|
||||
|
||||
{.push stack_trace: on.}
|
||||
|
||||
proc recTest(i: int) =
|
||||
# enter
|
||||
if i < 10:
|
||||
recTest(i+1)
|
||||
else: # should printStackTrace()
|
||||
var p: ptr int = nil
|
||||
p[] = 12
|
||||
# leave
|
||||
|
||||
{.pop.}
|
||||
|
||||
recTest(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue