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
parent 98753da331
commit 1b31e08917

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`