From 8ae21a7a4e161c0d1b8542c3ba51176bcda170de Mon Sep 17 00:00:00 2001 From: silent-observer Date: Mon, 18 Jul 2022 17:49:53 +0300 Subject: [PATCH] Fix documentation errors when importing vmath --- src/vmath.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmath.nim b/src/vmath.nim index 3db73f2..8e5808f 100644 --- a/src/vmath.nim +++ b/src/vmath.nim @@ -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