Merge pull request #2014 from def-/more-deprecations
Make nimkernel compile again
This commit is contained in:
commit
792a8dc702
2 changed files with 5 additions and 5 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
proc raiseRangeError(val: BiggestInt) {.compilerproc, noreturn, noinline.} =
|
||||
when hostOS == "standalone":
|
||||
sysFatal(EOutOfRange, "value out of range")
|
||||
sysFatal(RangeError, "value out of range")
|
||||
else:
|
||||
sysFatal(RangeError, "value out of range: ", $val)
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ proc chckRangeF(x, a, b: float): float =
|
|||
return x
|
||||
else:
|
||||
when hostOS == "standalone":
|
||||
sysFatal(EOutOfRange, "value out of range")
|
||||
sysFatal(RangeError, "value out of range")
|
||||
else:
|
||||
sysFatal(RangeError, "value out of range: ", $x)
|
||||
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@ proc quitOrDebug() {.inline.} =
|
|||
quit(1)
|
||||
|
||||
proc raiseException(e: ref Exception, ename: cstring) {.compilerRtl.} =
|
||||
sysFatal(ENoExceptionToReraise, "exception handling is not available")
|
||||
sysFatal(ReraiseError, "exception handling is not available")
|
||||
|
||||
proc reraiseException() {.compilerRtl.} =
|
||||
sysFatal(ENoExceptionToReraise, "no exception to reraise")
|
||||
sysFatal(ReraiseError, "no exception to reraise")
|
||||
|
||||
proc writeStackTrace() = discard
|
||||
|
||||
proc setControlCHook(hook: proc () {.noconv.}) = discard
|
||||
proc setControlCHook(hook: proc () {.noconv.} not nil) = discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue