Fix documentation errors when importing vmath

This commit is contained in:
silent-observer 2022-07-18 17:49:53 +03:00 committed by GitHub
parent 78ca669521
commit 8ae21a7a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -553,7 +553,7 @@ proc ivec4*(uvec4: Uvec4): Ivec4 =
proc uvec4*(ivec4: Ivec4): Uvec4 =
uvec4(ivec4.x.uint32, ivec4.y.uint32, ivec4.z.uint32, ivec4.w.uint32)
when not defined(nimdoc):
when not defined(nimdoc) or not isMainModule:
# TODO when https://github.com/nim-lang/Nim/issues/13063 is fixed use macros.
include vmath/swizzle