diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-21 18:48:07 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-21 18:50:44 +0400 |
commit | 8be4c6e8f3698c4f4d118490d83024220fe50780 (patch) | |
tree | da36ce3a5f90974819d06ba69e3f870e68ca3f71 /source | |
parent | 7acb7cb8975d113a26be4e78f4eb7646192b2ea0 (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')
-rw-r--r-- | source/blender/blenlib/PIL_time_utildefines.h | 5 |
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) \ { \ |