Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Add ngx_queue_foreach() macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Dec 20, 2011
1 parent 69ce014 commit 6a9cb90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/uv-private/ngx-queue.h
Expand Up @@ -99,4 +99,8 @@ struct ngx_queue_s {
(type *) ((unsigned char *) q - offsetof(type, link))


#define ngx_queue_foreach(q, h) \
for ((q) = ngx_queue_head(h); (q) != (h); (q) = ngx_queue_next(q))


#endif /* _NGX_QUEUE_H_INCLUDED_ */

0 comments on commit 6a9cb90

Please sign in to comment.