summary refs log tree commit diff stats
path: root/lib/wrappers/sdl/sdl.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-03-19 22:12:08 +0100
committerAraq <rumpf_a@web.de>2012-03-19 22:12:08 +0100
commitbb1885115db4d8075a6c688b58d4ccb91b6ad24a (patch)
tree311e436ba00df97885cc662bb3f690a3511cbf90 /lib/wrappers/sdl/sdl.nim
parent7cd2f353c72ced274e5a6e6c0f92e8e32e9d6374 (diff)
parent7b41b0f84113d3b9901d5c598dd909a1df6f960f (diff)
downloadNim-bb1885115db4d8075a6c688b58d4ccb91b6ad24a.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib/wrappers/sdl/sdl.nim')
-rwxr-xr-xlib/wrappers/sdl/sdl.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/sdl/sdl.nim b/lib/wrappers/sdl/sdl.nim
index 8ddab49dd..cf4eb452d 100755
--- a/lib/wrappers/sdl/sdl.nim
+++ b/lib/wrappers/sdl/sdl.nim
@@ -1284,9 +1284,9 @@ type                          # This is the system-independent thread info struc
   TProcedure* = proc ()
 
 type TEventSeq = set[TEventKind]
-template evconv(procName: expr, ptrName: typeDesc, assertions: TEventSeq): stmt =
+template evconv(procName: expr, ptrName: typeDesc, assertions: TEventSeq): stmt {.immediate.} =
   proc `procName`*(event: PEvent): ptrName =
-    assert(assertions.contains(event.kind))
+    assert(contains(assertions, event.kind))
     result = cast[ptrName](event)
 
 evconv(EvActive, PActiveEvent, {ACTIVEEVENT})