Go to the source code of this file.
|
#define | IPCN_DATA_SIZE sizeof(void *) |
|
#define | IPCN_OVERHEAD_SIZE (sizeof(ION_COLLECTION_NODE) - IPCN_DATA_SIZE) |
|
#define | IPCN_pNODE_TO_pDATA(x) (&((x)->_data[0])) |
|
#define | IPCN_pDATA_TO_pNODE(x) ((ION_COLLECTION_NODE *) (((uint8_t *)(x)) - IPCN_OVERHEAD_SIZE)) |
|
#define | ION_COLLECTION_IS_EMPTY(collection) ((collection)->_head == NULL) |
|
#define | ION_COLLECTION_SIZE(pcol) ((pcol)->_count) |
|
#define | ION_COLLECTION_OPEN(collection, pcursor) (pcursor) = (collection)->_head |
|
#define | ION_COLLECTION_NEXT(pcursor, pbuf) |
|
#define | ION_COLLECTION_CLOSE(pcursor) (pcursor) = NULL |
|
◆ ION_COLLECTION_NEXT
#define ION_COLLECTION_NEXT |
( |
|
pcursor, |
|
|
|
pbuf |
|
) |
| |
Value: if ((pcursor) != NULL) { \
*((void **)&(pbuf)) = IPCN_pNODE_TO_pDATA(pcursor); \
(pcursor) = (pcursor)->_next; \
} else { \
*((void **)&(pbuf)) = NULL; \
}