This commit is contained in:
Dominik Picheta 2018-07-09 23:33:31 +01:00 • committed by Andreas Rumpf
commit f805018461
2 changed files with 2 additions and 1 deletions

View file

@ -50,6 +50,7 @@
- For string inputs, ``strutils.isUpperAscii`` and ``strutils.isLowerAscii`` now - For string inputs, ``strutils.isUpperAscii`` and ``strutils.isLowerAscii`` now
require a second mandatory parameter ``skipNonAlpha``. require a second mandatory parameter ``skipNonAlpha``.
- ``osLastError`` is now marked with ``sideEffect``
- The procs ``parseHexInt`` and ``parseOctInt`` now fail on empty strings - The procs ``parseHexInt`` and ``parseOctInt`` now fail on empty strings
and strings containing only valid prefixes, e.g. "0x" for hex integers. and strings containing only valid prefixes, e.g. "0x" for hex integers.

View file

@ -66,7 +66,7 @@ proc raiseOSError*(errorCode: OSErrorCode; additionalInfo = "") {.noinline.} =
raise e raise e
{.push stackTrace:off.} {.push stackTrace:off.}
proc osLastError*(): OSErrorCode = proc osLastError*(): OSErrorCode {.sideEffect.} =
## Retrieves the last operating system error code. ## Retrieves the last operating system error code.
## ##
## This procedure is useful in the event when an OS call fails. In that case ## This procedure is useful in the event when an OS call fails. In that case