aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore/utils.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-02-20 20:34:29 +0100
committerHarald Welte <laforge@gnumonks.org>2010-02-20 20:34:29 +0100
commitec8b4501c7b0bfb286db7789635168d1b84f9105 (patch)
tree0db0073e589513d803d2b5be80580191e215dbe3 /include/osmocore/utils.h
intial checkin of the libosmocore project
Diffstat (limited to 'include/osmocore/utils.h')
-rw-r--r--include/osmocore/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
new file mode 100644
index 00000000..198f45a9
--- /dev/null
+++ b/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