summaryrefslogtreecommitdiffstats
path: root/nelem.h
diff options
context:
space:
mode:
Diffstat (limited to 'nelem.h')
-rw-r--r--nelem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nelem.h b/nelem.h
new file mode 100644
index 0000000..99b5f77
--- /dev/null
+++ b/nelem.h
@@ -0,0 +1,6 @@
+#ifndef VULKAN_NELEM_H
+#define VULKAN_NELEM_H
+
+#define NELEM(a) (sizeof (a) / sizeof (a)[0])
+
+#endif // VULKAN_NELEM_H