-/* Copyright (c) 2004-2007, 2009-2012. The SimGrid Team.
+/* Copyright (c) 2004-2007, 2009-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
*/
#define xbt_fifo_foreach(f,i,n,type) \
for(i=xbt_fifo_get_first_item(f); \
- ((i)?(n=(type)(xbt_fifo_get_item_content(i))):(NULL)); \
+ ((i)?(n=(type)(xbt_fifo_get_item_content(i)),1):(0)); \
i=xbt_fifo_get_next_item(i))
/** @} */