Put DLList_ForEach into one-line
This commit is contained in:
parent
b1394e6416
commit
842085ac26
@ -494,10 +494,8 @@ DN_API bool DN_TicketMutex_CanLock (DN_TicketMutex const *mutex, DN_UInt t
|
|||||||
#define DN_DLList_HasItems(list) \
|
#define DN_DLList_HasItems(list) \
|
||||||
((list) && ((list) != (list)->next))
|
((list) && ((list) != (list)->next))
|
||||||
|
|
||||||
#define DN_DLList_ForEach(it_name, list) \
|
#define DN_DLList_ForEach(it, list) \
|
||||||
auto *it_name = (list)->next; \
|
auto *it = (list)->next; (it) != (list); (it) = (it)->next \
|
||||||
(it_name) != (list); \
|
|
||||||
(it_name) = (it_name)->next
|
|
||||||
|
|
||||||
// NOTE: Intrinsics ////////////////////////////////////////////////////////////////////////////////
|
// NOTE: Intrinsics ////////////////////////////////////////////////////////////////////////////////
|
||||||
DN_FORCE_INLINE DN_U64 DN_Atomic_SetValue64(DN_U64 volatile *target, DN_U64 value)
|
DN_FORCE_INLINE DN_U64 DN_Atomic_SetValue64(DN_U64 volatile *target, DN_U64 value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user