import macros rather than import std/macros. (#13762)

This commit is contained in:
Euan 2020-03-26 08:11:32 +00:00 • committed by GitHub
commit 1b31e08917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,8 @@ since (1, 1):
type StaticParam*[value] = object
## used to wrap a static value in `genericParams`
import std/macros
# NOTE: See https://github.com/nim-lang/Nim/issues/13758 - `import std/macros` does not work on OpenBSD
import macros
macro genericParamsImpl(T: typedesc): untyped =
# auxiliary macro needed, can't do it directly in `genericParams`