[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57937] branches/soc-2013-depsgraph_mt/ source/blender/windowmanager/intern/wm_event_system.c: Simplify debug print macro in WM even system
Sergey Sharybin
sergey.vfx at gmail.com
Tue Jul 2 21:22:49 CEST 2013
Revision: 57937
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57937
Author: nazgul
Date: 2013-07-02 19:22:49 +0000 (Tue, 02 Jul 2013)
Log Message:
-----------
Simplify debug print macro in WM even system
Modified Paths:
--------------
branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_event_system.c
Modified: branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_event_system.c 2013-07-02 19:22:46 UTC (rev 57936)
+++ branches/soc-2013-depsgraph_mt/source/blender/windowmanager/intern/wm_event_system.c 2013-07-02 19:22:49 UTC (rev 57937)
@@ -1768,11 +1768,7 @@
/* comment this out to flood the console! (if you really want to test) */
!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE)
;
-# if defined __GNUC__ || defined __sun
-# define PRINT(format, args ...) { if (do_debug_handler) printf(format, ##args); } (void)0
-# else
-# define PRINT(format, ...) { if (do_debug_handler) printf(__VA_ARGS__); } (void)0
-# endif
+# define PRINT if (do_debug_handler) printf
#else
# define PRINT(format, ...)
#endif
More information about the Bf-blender-cvs
mailing list