add FOR_EACH_IN_ARRAY
authorJann Horn <jann@thejh.net>
Sun, 8 Dec 2013 20:28:06 +0000 (21:28 +0100)
committerJann Horn <jann@thejh.net>
Sun, 8 Dec 2013 20:28:06 +0000 (21:28 +0100)
control_structures.c [new file with mode: 0644]

diff --git a/control_structures.c b/control_structures.c
new file mode 100644 (file)
index 0000000..2891ea6
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright (2013) Jann Horn <jann@thejh.net>
+
+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