ListNodeBegin
- Macro
- October 8, 2025
Table of Contents
ListNodeBegin
ListNodeBegin
Description
Reference to head node in list
Parameters
Name | Direction | Description |
---|---|---|
l | in | List to get node from |
Success
Reference to head node.
Failure
NULL
Usage example (Cross-references)
- In
Foreach.h:29
:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:56
:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->head)) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
if (((void *)UNPL(node)->next != (void *)UNPL(node)) && \
- In
Foreach.h:140
:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:167
:
for (TYPE_OF(l) UNPL(pl) = (l); UNPL(pl); UNPL(pl) = NULL) \
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)); UNPL(node); \
UNPL(node) = ListNodeNext(UNPL(node))) \
for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodeNext(UNPL(node)), ++UNPL(i)) \
- In
Foreach.h:259
:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (u64 idx = 0, UNPL(pidx) = 0; idx < UNPL(pl)->length;) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)), *UNPL(next) = NULL; \
UNPL(node) && \
(UNPL(next) = \
- In
Foreach.h:300
:
if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->head) \
for (u64 idx = 0, UNPL(pidx) = 0; idx < UNPL(pl)->length;) \
for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeBegin(UNPL(pl)), *UNPL(next) = NULL; \
UNPL(node) && \
(UNPL(next) = \