code cleanup: there is no MoveError and sinks are always available
This commit is contained in:
parent
df3d08b58b
commit
0fd5417aff
2 changed files with 16 additions and 32 deletions
|
|
@ -59,11 +59,6 @@ proc chckNil(p: pointer) =
|
|||
if p == nil:
|
||||
sysFatal(NilAccessError, "attempt to write to a nil address")
|
||||
|
||||
when defined(nimNewRuntime):
|
||||
proc chckMove(b: bool) {.compilerproc.} =
|
||||
if not b:
|
||||
sysFatal(MoveError, "attempt to access an object that was moved")
|
||||
|
||||
proc chckNilDisp(p: pointer) {.compilerproc.} =
|
||||
if p == nil:
|
||||
sysFatal(NilAccessError, "cannot dispatch; dispatcher is nil")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue