diff options
author | Araq <rumpf_a@web.de> | 2014-04-21 00:07:31 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-21 00:07:31 +0200 |
commit | e3fab47508138687cdc85553440c8313606395c3 (patch) | |
tree | b68a5f1e43167cae54485c818891626e9505526a /lib | |
parent | 472190bedc96dfa33b5979746f815feaa1555ac8 (diff) | |
download | Nim-e3fab47508138687cdc85553440c8313606395c3.tar.gz |
attempt to make some tests green
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/embedded.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/system/embedded.nim b/lib/system/embedded.nim index fad9722c2..85fe17f8d 100644 --- a/lib/system/embedded.nim +++ b/lib/system/embedded.nim @@ -15,14 +15,14 @@ proc chckRange(i, a, b: int): int {.inline, compilerproc.} proc chckRangeF(x, a, b: float): float {.inline, compilerproc.} proc chckNil(p: pointer) {.inline, compilerproc.} -proc pushFrame(s: PFrame) {.compilerRtl, inl, exportc: "nimFrame".} = nil -proc popFrame {.compilerRtl, inl.} = nil +proc pushFrame(s: PFrame) {.compilerRtl, inl, exportc: "nimFrame".} = discard +proc popFrame {.compilerRtl, inl.} = discard -proc setFrame(s: PFrame) {.compilerRtl, inl.} = nil -proc pushSafePoint(s: PSafePoint) {.compilerRtl, inl.} = nil -proc popSafePoint {.compilerRtl, inl.} = nil -proc pushCurrentException(e: ref E_Base) {.compilerRtl, inl.} = nil -proc popCurrentException {.compilerRtl, inl.} = nil +proc setFrame(s: PFrame) {.compilerRtl, inl.} = discard +proc pushSafePoint(s: PSafePoint) {.compilerRtl, inl.} = discard +proc popSafePoint {.compilerRtl, inl.} = discard +proc pushCurrentException(e: ref E_Base) {.compilerRtl, inl.} = discard +proc popCurrentException {.compilerRtl, inl.} = discard # some platforms have native support for stack traces: const @@ -38,6 +38,6 @@ proc raiseException(e: ref E_Base, ename: CString) {.compilerRtl.} = proc reraiseException() {.compilerRtl.} = sysFatal(ENoExceptionToReraise, "no exception to reraise") -proc WriteStackTrace() = nil +proc writeStackTrace() = discard -proc setControlCHook(hook: proc () {.noconv.}) = nil +proc setControlCHook(hook: proc () {.noconv.}) = discard |