From f35b51c68fb758b4ab40b06674e75a75ebf1bf38 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 1 Nov 2012 08:32:30 +0100 Subject: doc2 support for nimweb; fixed graphics.withEvents --- lib/impure/graphics.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/impure') diff --git a/lib/impure/graphics.nim b/lib/impure/graphics.nim index b3bc578d0..0ec2d3903 100755 --- a/lib/impure/graphics.nim +++ b/lib/impure/graphics.nim @@ -487,7 +487,8 @@ proc fillSurface*(sur: PSurface, color: TColor) = if sdl.FillRect(sur.s, nil, sur.createSdlColor(color)) == -1: raiseEGraphics() -template withEvents*(surf: PSurface, event: expr, actions: stmt): stmt = +template withEvents*(surf: PSurface, event: expr, actions: stmt): stmt {. + immediate.} = ## Simple template which creates an event loop. ``Event`` is the name of the ## variable containing the TEvent object. while True: -- cgit 1.4.1-2-gfad0