summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_list.h')
-rw-r--r--src/lib/eina/eina_list.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/eina/eina_list.h b/src/lib/eina/eina_list.h
index a81f57b801..2e62e4f90f 100644
--- a/src/lib/eina/eina_list.h
+++ b/src/lib/eina/eina_list.h
@@ -1612,6 +1612,18 @@ EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list) EINA_MA
1612 list = eina_list_remove_list(list, list), \ 1612 list = eina_list_remove_list(list, list), \
1613 data = eina_list_data_get(list)) 1613 data = eina_list_data_get(list))
1614 1614
1615/**
1616 * @def EINA_LIST_LAST_DATA_GET
1617 * @brief Macro to return the last list node's data
1618 *
1619 * @param list The list
1620 * @return The node's data, or @c NULL on being passed a @c NULL pointer
1621 *
1622 * This macro is a shortcut for typing eina_list_data_get(eina_list_last())
1623 */
1624#define eina_list_last_data_get(list) \
1625 eina_list_data_get(eina_list_last(list))
1626
1615#include "eina_inline_list.x" 1627#include "eina_inline_list.x"
1616 1628
1617/** 1629/**