From e3fab47508138687cdc85553440c8313606395c3 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 21 Apr 2014 00:07:31 +0200 Subject: attempt to make some tests green --- lib/system/embedded.nim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib') 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 -- cgit 1.4.1-2-gfad0