From: Jann Horn Date: Sun, 8 Dec 2013 20:28:06 +0000 (+0100) Subject: add FOR_EACH_IN_ARRAY X-Git-Url: http://git.thejh.net/?a=commitdiff_plain;h=d8f6e4ade23d1a31e538244c596c7d459738b9e8;p=libjh.git add FOR_EACH_IN_ARRAY --- diff --git a/control_structures.c b/control_structures.c new file mode 100644 index 0000000..2891ea6 --- /dev/null +++ b/control_structures.c @@ -0,0 +1,4 @@ +// Copyright (2013) Jann Horn + +HEADER #define FOR_EACH_IN_ARRAY(array,array_len,element) \ +HEADER for (typeof(array[0]) *element = &(array)[0]; element < &(array)[array_len]; element++) \ No newline at end of file