diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2018-07-09 23:33:31 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-10 00:33:31 +0200 |
commit | f80501846137cd276536b1e489f4caa8acdcbd5d (patch) | |
tree | 3a4f5e0d1bc034fce2296fd0419d35a23ba2fb29 | |
parent | 5c5388c0a66c35319e2f360744ab0b9183ca5160 (diff) | |
download | Nim-f80501846137cd276536b1e489f4caa8acdcbd5d.tar.gz |
Fixes #5880. (#7229)
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | lib/pure/includes/oserr.nim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 0943d7836..681b4b0a4 100644 --- a/changelog.md +++ b/changelog.md @@ -50,6 +50,7 @@ - For string inputs, ``strutils.isUpperAscii`` and ``strutils.isLowerAscii`` now require a second mandatory parameter ``skipNonAlpha``. +- ``osLastError`` is now marked with ``sideEffect`` - The procs ``parseHexInt`` and ``parseOctInt`` now fail on empty strings and strings containing only valid prefixes, e.g. "0x" for hex integers. diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index bfb6118f2..eb350cbd4 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -66,7 +66,7 @@ proc raiseOSError*(errorCode: OSErrorCode; additionalInfo = "") {.noinline.} = raise e {.push stackTrace:off.} -proc osLastError*(): OSErrorCode = +proc osLastError*(): OSErrorCode {.sideEffect.} = ## Retrieves the last operating system error code. ## ## This procedure is useful in the event when an OS call fails. In that case |