diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-03-16 05:33:21 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-03-16 05:33:21 +0200 |
commit | 72f2a6e2755cdeaf1db85a9b119b694b9a2cb472 (patch) | |
tree | cb4dc5c42656a876337dbfce21e176d204ee35f6 /lib/wrappers/sdl | |
parent | 84806e6a61da2641b6e8cb34800c874dc74b90af (diff) | |
download | Nim-72f2a6e2755cdeaf1db85a9b119b694b9a2cb472.tar.gz |
the test suite is mostly green again
Diffstat (limited to 'lib/wrappers/sdl')
-rwxr-xr-x | lib/wrappers/sdl/sdl.nim | 4 |
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}) |