Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_context.h
| Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | #define CTX_DATA_BEGIN(C, Type, instance, member) \ | ||||
| { \ | { \ | ||||
| Type instance = ctx_link->ptr.data; | Type instance = ctx_link->ptr.data; | ||||
| #define CTX_DATA_END \ | #define CTX_DATA_END \ | ||||
| } \ | } \ | ||||
| BLI_freelistN(&ctx_data_list); \ | BLI_freelistN(&ctx_data_list); \ | ||||
| } (void)0 | } (void)0 | ||||
| #define CTX_DATA_BEGIN_WITH_ID(C, Type, instance, member, Type_id, instance_id) \ | |||||
| CTX_DATA_BEGIN(C, Type, instance, member) \ | |||||
| Type_id instance_id = ctx_link->ptr.id. data; \ | |||||
mont29: Some space between id and data `id. data` | |||||
| int ctx_data_list_count(const bContext *C, int (*func)(const bContext *, ListBase *)); | int ctx_data_list_count(const bContext *C, int (*func)(const bContext *, ListBase *)); | ||||
| #define CTX_DATA_COUNT(C, member) \ | #define CTX_DATA_COUNT(C, member) \ | ||||
| ctx_data_list_count(C, CTX_data_##member) | ctx_data_list_count(C, CTX_data_##member) | ||||
| /* Data Context Members */ | /* Data Context Members */ | ||||
| struct Main *CTX_data_main(const bContext *C); | struct Main *CTX_data_main(const bContext *C); | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||
Some space between id and data id. data