diff --git a/examples/nim.cfg b/examples/nim.cfg new file mode 100644 index 0000000..a119208 --- /dev/null +++ b/examples/nim.cfg @@ -0,0 +1 @@ +--path:"../src" diff --git a/src/opengl.nim b/src/opengl.nim index 8a90e20..cb953e4 100644 --- a/src/opengl.nim +++ b/src/opengl.nim @@ -364,7 +364,7 @@ proc enableAutoGLerrorCheck*(yes: bool) = ## ``noAutoGLerrorCheck`` is defined. gAutoGLerrorCheck = yes -macro wrapErrorChecking(f: stmt): stmt = +macro wrapErrorChecking(f: stmt): stmt {.immediate.} = f.expectKind nnkStmtList result = newStmtList()