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 | |
parent | 700448f359fcaa397793d314eff7cf3aa2b13d18 (diff) | |
download | Nim-abe0725ab153b64dae388b99a285066c361f6cab.tar.gz |
WIP: nothing works
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/strs.nim | 2 | ||||
-rw-r--r-- | lib/system/excpt.nim | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/core/strs.nim b/lib/core/strs.nim index 562beaa91..186add52a 100644 --- a/lib/core/strs.nim +++ b/lib/core/strs.nim @@ -46,7 +46,7 @@ template frees(s) = s.p.region.dealloc(s.p.region, s.p, contentSize(s.p.cap)) proc `=destroy`(s: var string) = - var a = cast[ptr NimStringV2[T]](addr s) + var a = cast[ptr NimStringV2](addr s) frees(a) a.len = 0 a.p = nil 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.} = |