sugar: preserve most Nim atomics with %

This commit is contained in:
Emery Hemingway 2024-05-23 15:58:40 +03:00
parent 13fe49e791
commit ed065fcc2d
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# auto-update-version
version = "20240522"
version = "20240523"
author = "Emery Hemingway"
description = "data model and serialization format"
license = "Unlicense"

View File

@ -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.