Skip to content

Commit

Permalink
follow up nim-lang#19408; bump devel version and deprecated unsafeAddr (
Browse files Browse the repository at this point in the history
nim-lang#20432)

bump devel version and deprecated unsafeAddr
  • Loading branch information
ringabout authored and capocasa committed Mar 31, 2023
1 parent 6b76c2b commit 7d10ee9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
## ```
discard

proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect,
deprecated: "'unsafeAddr' is a deprecated alias for 'addr'".} =
## Builtin `addr` operator for taking the address of a memory
## location.
##
Expand Down Expand Up @@ -2147,7 +2148,7 @@ const
## is the minor number of Nim's version.
## Odd for devel, even for releases.

NimPatch* {.intdefine.}: int = 1
NimPatch* {.intdefine.}: int = 3
## is the patch number of Nim's version.
## Odd for devel, even for releases.

Expand Down

0 comments on commit 7d10ee9

Please sign in to comment.