Skip to content

Commit

Permalink
2.1.1: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Nov 3, 2021
1 parent f4322d6 commit 0792d3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frosty.nim
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ proc operation(n: NimNode): Op =
result = operation n[0]
else: error "unrecognized input: " & treeRepr(n)

proc serialize[T](s: var Serializer; o: ref T)
proc deserialize[T](s: var Serializer; o: var ref T)
proc serialize*[T](s: var Serializer; o: ref T)
proc deserialize*[T](s: var Serializer; o: var ref T)
proc forObject(s, o, tipe: NimNode; call: NimNode): NimNode
proc forTuple(s: NimNode; o: NimNode; call: NimNode): NimNode
proc writePrimitive(s: NimNode; o: NimNode): NimNode
Expand Down Expand Up @@ -257,10 +257,10 @@ proc readSequence(s: NimNode; o: NimNode): NimNode =
#

macro writeRefImpl[T](s: var Serializer; o: ref T) = writeRef(s, o)
proc serialize[T](s: var Serializer; o: ref T) = writeRefImpl(s, o)
proc serialize*[T](s: var Serializer; o: ref T) = writeRefImpl(s, o)

macro readRefImpl[T](s: var Serializer; o: ref T) = readRef(s, o)
proc deserialize[T](s: var Serializer; o: var ref T) = readRefImpl(s, o)
proc deserialize*[T](s: var Serializer; o: var ref T) = readRefImpl(s, o)

#
# put 'em down here so we don't accidentally bind somewhere
Expand Down
2 changes: 1 addition & 1 deletion frosty.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2.1.0"
version = "2.1.1"
author = "disruptek"
description = "serialize native Nim types to strings, streams, or sockets"
license = "MIT"
Expand Down

0 comments on commit 0792d3f

Please sign in to comment.