mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
2b82fe44ea
- Create a branch to drop my ndisuio work svn path=/branches/wlan-bringup/; revision=54809
25 lines
697 B
C
25 lines
697 B
C
#pragma once
|
|
|
|
#define TIPASTE(x,y) x ## y
|
|
|
|
#define IF_LIST_ITER(n) \
|
|
PLIST_ENTRY TIPASTE(n,Entry); \
|
|
PIP_INTERFACE n;
|
|
|
|
#define ForEachInterface(n) \
|
|
TIPASTE(n,Entry) = InterfaceListHead.Flink; \
|
|
while (TIPASTE(n,Entry) != &InterfaceListHead) { \
|
|
TI_DbgPrint \
|
|
(MAX_TRACE,( # n ": %x\n", \
|
|
TIPASTE(n,Entry))); \
|
|
ASSERT(TIPASTE(n,Entry)); \
|
|
n = CONTAINING_RECORD(TIPASTE(n,Entry), IP_INTERFACE, \
|
|
ListEntry); \
|
|
ASSERT(n);
|
|
|
|
#define EndFor(n) \
|
|
TI_DbgPrint(MAX_TRACE,("Next " # n " %x\n", \
|
|
TIPASTE(n,Entry->Flink))); \
|
|
TIPASTE(n,Entry) = TIPASTE(n,Entry)->Flink; \
|
|
}
|