Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_main.h
| Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Lines | void BKE_main_library_weak_reference_remove_item(struct GHash *library_weak_reference_mapping, | ||||
| const char *library_filepath, | const char *library_filepath, | ||||
| const char *library_id_name, | const char *library_id_name, | ||||
| struct ID *old_id) ATTR_NONNULL(); | struct ID *old_id) ATTR_NONNULL(); | ||||
| /* *** Generic utils to loop over whole Main database. *** */ | /* *** Generic utils to loop over whole Main database. *** */ | ||||
| #define FOREACH_MAIN_LISTBASE_ID_BEGIN(_lb, _id) \ | #define FOREACH_MAIN_LISTBASE_ID_BEGIN(_lb, _id) \ | ||||
| { \ | { \ | ||||
| ID *_id_next = (_lb)->first; \ | ID *_id_next = (ID *)(_lb)->first; \ | ||||
| for ((_id) = _id_next; (_id) != NULL; (_id) = _id_next) { \ | for ((_id) = _id_next; (_id) != NULL; (_id) = _id_next) { \ | ||||
| _id_next = (_id)->next; | _id_next = (ID *)(_id)->next; | ||||
Severin: Needed to use this macro in C++. | |||||
| #define FOREACH_MAIN_LISTBASE_ID_END \ | #define FOREACH_MAIN_LISTBASE_ID_END \ | ||||
| } \ | } \ | ||||
| } \ | } \ | ||||
| ((void)0) | ((void)0) | ||||
| #define FOREACH_MAIN_LISTBASE_BEGIN(_bmain, _lb) \ | #define FOREACH_MAIN_LISTBASE_BEGIN(_bmain, _lb) \ | ||||
| { \ | { \ | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||
Needed to use this macro in C++.