GENERIC_LIST_NODE

Table of Contents

GENERIC_LIST_NODE

Description

Cast any list node to a generic list node

Usage example (Cross-references)

    /// FAILURE: `NULL` or abort
    ///
    #define ListNodeRelative(base_node, ridx) get_relative_node_to_list_node(GENERIC_LIST_NODE(base_node), (i64)(ridx))
    
    #endif // MISRA_STD_CONTAINER_LIST_ACCESS_H
    (UNPL(pidx) ? (GenericListNode *)get_node_random_access(                                     \
    GENERIC_LIST(UNPL(pl)),                                                    \
    GENERIC_LIST_NODE(UNPL(node)),                                             \
    UNPL(pidx),                                                                \
    (i64)(idx) - (i64)UNPL(pidx)                                               \
    (UNPL(pidx) ? (GenericListNode *)get_node_random_access(                                     \
    GENERIC_LIST(UNPL(pl)),                                                    \
    GENERIC_LIST_NODE(UNPL(node)),                                             \
    UNPL(pidx),                                                                \
    (i64)(idx) - (i64)UNPL(pidx)                                               \
    (UNPL(pidx) != idx ? (GenericListNode *)get_node_random_access(                              \
    GENERIC_LIST(UNPL(pl)),                                             \
    GENERIC_LIST_NODE(UNPL(node)),                                      \
    UNPL(pidx),                                                         \
    (i64)(idx) - (i64)UNPL(pidx)                                        \
    (UNPL(pidx) != idx ? get_node_random_access(                                                 \
    GENERIC_LIST(UNPL(pl)),                                             \
    GENERIC_LIST_NODE(UNPL(node)),                                      \
    UNPL(pidx),                                                         \
    (i64)(idx) - (i64)(UNPL(pidx))                                      \

Share :