diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-08-05 09:38:14 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-05 09:38:14 +0200 |
commit | abe0725ab153b64dae388b99a285066c361f6cab (patch) | |
tree | 7f9451d9d80902567844316b4e3343771b1e0bef /lib/system | |
parent | 700448f359fcaa397793d314eff7cf3aa2b13d18 (diff) | |
download | Nim-abe0725ab153b64dae388b99a285066c361f6cab.tar.gz |
WIP: nothing works
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/excpt.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index dabfe010e..1e590965a 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -428,10 +428,11 @@ proc getStackTrace(e: ref Exception): string = else: result = "" -proc getStackTraceEntries*(e: ref Exception): seq[StackTraceEntry] = - ## Returns the attached stack trace to the exception ``e`` as - ## a ``seq``. This is not yet available for the JS backend. - shallowCopy(result, e.trace) +when not defined(gcDestructors): + proc getStackTraceEntries*(e: ref Exception): seq[StackTraceEntry] = + ## Returns the attached stack trace to the exception ``e`` as + ## a ``seq``. This is not yet available for the JS backend. + shallowCopy(result, e.trace) when defined(nimRequiresNimFrame): proc stackOverflow() {.noinline.} = |