[Bf-blender-cvs] [8be4c6e] master: Timing macros: remove the (void)0 at the end of TIMEIT_BLOCK_INIT, it prevents declaring/using more than one of these timing blocks in a same code block (C rule, no var declaration and code mixing)...
Bastien Montagne
noreply at git.blender.org
Tue Jan 21 15:50:45 CET 2014
Commit: 8be4c6e8f3698c4f4d118490d83024220fe50780
Author: Bastien Montagne
Date: Tue Jan 21 15:48:07 2014 +0100
https://developer.blender.org/rB8be4c6e8f3698c4f4d118490d83024220fe50780
Timing macros: remove the (void)0 at the end of TIMEIT_BLOCK_INIT,
it prevents declaring/using more than one of these timing blocks in a same code block
(C rule, no var declaration and code mixing)...
===================================================================
M source/blender/blenlib/PIL_time_utildefines.h
===================================================================
diff --git a/source/blender/blenlib/PIL_time_utildefines.h b/source/blender/blenlib/PIL_time_utildefines.h
index 135817f..4141bef 100644
--- a/source/blender/blenlib/PIL_time_utildefines.h
+++ b/source/blender/blenlib/PIL_time_utildefines.h
@@ -72,9 +72,8 @@
TIMEIT_END(id); \
} (void)0
-#define TIMEIT_BLOCK_INIT(id) \
- double _timeit_var_##id = 0; \
- (void) 0
+#define TIMEIT_BLOCK_INIT(id) \
+ double _timeit_var_##id = 0
#define TIMEIT_BLOCK_START(id) \
{ \
More information about the Bf-blender-cvs
mailing list