summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2010-09-20 22:33:23 +0200
committerAraq <rumpf_a@web.de>2010-09-20 22:33:23 +0200
commit0a57f662fa6f15916caa564312a162ddb3c04883 (patch)
treec713e9d318d0c944d678a20b294b4a1a3f0bec74 /lib/system.nim
parentf182d8d708aa3195b87a0e732faf73d3d3fa4b24 (diff)
downloadNim-0a57f662fa6f15916caa564312a162ddb3c04883.tar.gz
bugfix: finally sections are executed before return/break
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-xlib/system.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index abb3dd6e0..dad8d2d79 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1232,6 +1232,9 @@ template accumulateResult*(iter: expr) =
   result = @[]
   for x in iter: add(result, x)
 
+# we have to compute this here before turning it off in except.nim anyway ...
+const nimrodStackTrace = compileOption("stacktrace")
+
 {.push checks: off, line_dir: off, debugger: off.}  
 # obviously we cannot generate checking operations here :-)
 # because it would yield into an endless recursion