aboutsummaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-24 18:05:38 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-24 18:05:38 -0400
commit48bc192d262416e9466922c4b65b066ee6027d9a (patch)
tree77ab002bbc0ee27a2374209161c38e32bd4b776b /util.h
parente515fe68d878a320e7548080d31b07eee0d791af (diff)
downloadvolute-48bc192d262416e9466922c4b65b066ee6027d9a.zip
move nelem macro to util.h
Diffstat (limited to 'util.h')
-rw-r--r--util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..2752bd4
--- /dev/null
+++ b/util.h
@@ -0,0 +1 @@
+#define nelem(arr) (sizeof(arr)/sizeof(arr[0]))