Skip to content

Instantly share code, notes, and snippets.

@ricardoquesada
Created December 1, 2010 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardoquesada/723522 to your computer and use it in GitHub Desktop.
Save ricardoquesada/723522 to your computer and use it in GitHub Desktop.
CCARRAY_FOREACH fixed ?
#define CCARRAY_FOREACH(__array__, __object__) \
if (__array__ && __array__->data->num > 0) \
for(id *arr = __array__->data->arr, *end = __array__->data->arr + __array__->data->num-1; \
arr <= end && ((__object__ = *arr) != nil || true); \
arr++)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment