aboutsummaryrefslogtreecommitdiff
path: root/inc/_.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/_.h')
-rw-r--r--inc/_.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/_.h b/inc/_.h
new file mode 100644
index 0000000..20b2649
--- /dev/null
+++ b/inc/_.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#define auto __auto_type
+#define foreach(E, L) for (auto E = (L); E != NULL; E = E->next)
+#define forloop(I, F, T) for (auto I = F; I < T; I++)
+#define with(I, T) auto I = (T); if (I)