From 4308c6f405c6a9466f127e4cc5627cec39c30f82 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 28 Dec 2014 15:22:27 +0000 Subject: [PATCH] Fixes wrapErrorChecking macro. --- examples/nim.cfg | 1 + src/opengl.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 examples/nim.cfg 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()