summary refs log tree commit diff stats
path: root/lib/wrappers/sdl
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-03-16 05:33:21 +0200
committerZahary Karadjov <zahary@gmail.com>2012-03-16 05:33:21 +0200
commit72f2a6e2755cdeaf1db85a9b119b694b9a2cb472 (patch)
treecb4dc5c42656a876337dbfce21e176d204ee35f6 /lib/wrappers/sdl
parent84806e6a61da2641b6e8cb34800c874dc74b90af (diff)
downloadNim-72f2a6e2755cdeaf1db85a9b119b694b9a2cb472.tar.gz
the test suite is mostly green again
Diffstat (limited to 'lib/wrappers/sdl')
-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})