diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 02:05:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-28 02:05:38 +0300 |
commit | bc71aa5a4c5e0ce961803d7d0b7649ad6d384006 (patch) | |
tree | fa9754a9a0fe28a91c99916b468b5a35ae28fb0f /source/blender/render/intern/include/render_result.h | |
parent | 000002e42df54b00009fe1d2341d27d8cc418925 (diff) |
Cleanup: macros using _END, should have a _BEGIN
Also use var names not likely to be shadowed.
Diffstat (limited to 'source/blender/render/intern/include/render_result.h')
-rw-r--r-- | source/blender/render/intern/include/render_result.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/render/intern/include/render_result.h b/source/blender/render/intern/include/render_result.h index b2c5758f506..23db993a1a9 100644 --- a/source/blender/render/intern/include/render_result.h +++ b/source/blender/render/intern/include/render_result.h @@ -117,16 +117,16 @@ void render_result_views_shallowcopy(struct RenderResult *dst, struct RenderResu void render_result_views_shallowdelete(struct RenderResult *rr); bool render_result_has_views(struct RenderResult *rr); -#define FOREACH_VIEW_LAYER_TO_RENDER(re_, iter_) \ +#define FOREACH_VIEW_LAYER_TO_RENDER_BEGIN(re_, iter_) \ { \ - int nr; \ + int nr_; \ ViewLayer *iter_; \ - for (nr = 0, iter_ = (re_)->view_layers.first; \ + for (nr_ = 0, iter_ = (re_)->view_layers.first; \ iter_ != NULL; \ - iter_ = iter_->next, nr++) \ + iter_ = iter_->next, nr_++) \ { \ if ((re_)->r.scemode & R_SINGLE_LAYER) { \ - if (nr != re->active_view_layer) { \ + if (nr_ != re->active_view_layer) { \ continue; \ } \ } \ |