Re: include: Add ONCE macro for making debug output less noisy
4 Jan
2011
4 Jan
'11
1:51 p.m.
Sven Baars <sven.wine(a)gmail.com> writes:
@@ -250,6 +250,12 @@ static inline const char *wine_dbgstr_longlong( ULONGLONG ll ) #define WINE_DPRINTF wine_dbg_printf #define WINE_MESSAGE wine_dbg_printf
+#define WINE_ONCE(do_once) \ + do{ static int wine_once_var; \ + if (!wine_once_var) { \ + wine_once_var = 1; \ + do_once; } } while(0)
I don't think that buys anything over spelling it out explicitly. -- Alexandre Julliard julliard(a)winehq.org
5459
Age (days ago)
5459
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard