Fixes wrapErrorChecking macro.

This commit is contained in:
Dominik Picheta 2014-12-28 15:22:27 +00:00
commit 4308c6f405
2 changed files with 2 additions and 1 deletions

View file

@ -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()