sugar: preserve most Nim atomics with %
This commit is contained in:
parent
13fe49e791
commit
ed065fcc2d
|
@ -1,6 +1,6 @@
|
|||
# auto-update-version
|
||||
|
||||
version = "20240522"
|
||||
version = "20240523"
|
||||
author = "Emery Hemingway"
|
||||
description = "data model and serialization format"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
|
||||
import ../preserves, ./private/macros
|
||||
|
||||
proc `%`*(n: SomeInteger): Value {.inline.} = n.toPreserves
|
||||
proc `%`*(v: bool|SomeFloat|SomeInteger|string|seq[byte]|Symbol): Value {.inline.} = v.toPreserves
|
||||
# Preserve an atomic Nim value.
|
||||
|
|
Loading…
Reference in New Issue