diff options
author | Araq <rumpf_a@web.de> | 2011-04-29 23:30:31 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-29 23:30:31 +0200 |
commit | 48e3b3e0f176b760b4b792466a2ef7f874de6a49 (patch) | |
tree | 66f1e97e1ee93e061b288518f54d923c51ddf6eb /lib | |
parent | 145fabeb67fefafab0c019b57fde74a58f9454e7 (diff) | |
download | Nim-48e3b3e0f176b760b4b792466a2ef7f874de6a49.tar.gz |
optional native stack traces
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/system/excpt.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 0d318e23a..073013113 100755 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -64,7 +64,7 @@ const nativeStackTraceSupported = (defined(macosx) or defined(linux)) and not nimrodStackTrace -when nativeStacktrace and nativeStackTraceSupported: +when defined(nativeStacktrace) and nativeStackTraceSupported: type TDl_info {.importc: "Dl_info", header: "<dlfcn.h>", final, pure.} = object @@ -165,7 +165,7 @@ proc rawWriteStackTrace(s: var string) = add(s, "Traceback (most recent call last)") add(s, stackTraceNewLine) auxWriteStackTrace(framePtr, s) - elif nativeStackTrace and nativeStackTraceSupported: + elif defined(nativeStackTrace) and nativeStackTraceSupported: add(s, "Traceback from system (most recent call last)") add(s, stackTraceNewLine) auxWriteStackTraceWithBacktrace(s) |