aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/include/osmocore/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libosmocore/include/osmocore/utils.h')
-rw-r--r--libosmocore/include/osmocore/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libosmocore/include/osmocore/utils.h b/libosmocore/include/osmocore/utils.h
new file mode 100644
index 000000000..198f45a97
--- /dev/null
+++ b/libosmocore/include/osmocore/utils.h
@@ -0,0 +1,6 @@
+#ifndef OSMOCORE_UTIL_H
+#define OSMOCORE_UTIL_H
+
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+
+#endif