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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-15 11:24:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-15 11:24:14 +0400
commite7f1033dcb91ea3fdc4e301efbafc84cd151e05a (patch)
treed46474dcd20cfac34a90b4f1ef9cc32d4ca509c8 /source/blender/blenkernel/BKE_context.h
parent3f605bff4be79c642ebca58ffef5dc6b66d0858e (diff)
style cleanup: for loop macros, also add a config file for uncrustify source formatter (able to get very close to our own style guide).
Diffstat (limited to 'source/blender/blenkernel/BKE_context.h')
-rw-r--r--source/blender/blenkernel/BKE_context.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_context.h b/source/blender/blenkernel/BKE_context.h
index 944cce675cc..b2bd840a09a 100644
--- a/source/blender/blenkernel/BKE_context.h
+++ b/source/blender/blenkernel/BKE_context.h
@@ -212,8 +212,11 @@ void CTX_data_list_add(bContextDataResult *result, void *data);
ListBase ctx_data_list; \
CollectionPointerLink *ctx_link; \
CTX_data_##member(C, &ctx_data_list); \
- for(ctx_link=ctx_data_list.first; ctx_link; ctx_link=ctx_link->next) {\
- Type instance= ctx_link->ptr.data;
+ for (ctx_link = ctx_data_list.first; \
+ ctx_link; \
+ ctx_link = ctx_link->next) \
+ { \
+ Type instance = ctx_link->ptr.data;
#define CTX_DATA_END \
} \