Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-01-21 18:48:07 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-01-21 18:50:44 +0400
commit8be4c6e8f3698c4f4d118490d83024220fe50780 (patch)
treeda36ce3a5f90974819d06ba69e3f870e68ca3f71 /source/blender/blenlib/PIL_time_utildefines.h
parent7acb7cb8975d113a26be4e78f4eb7646192b2ea0 (diff)
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)...
Diffstat (limited to 'source/blender/blenlib/PIL_time_utildefines.h')
-rw-r--r--source/blender/blenlib/PIL_time_utildefines.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenlib/PIL_time_utildefines.h b/source/blender/blenlib/PIL_time_utildefines.h
index 135817f6a17..4141befb130 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) \
{ \