summaryrefslogtreecommitdiffstats
path: root/include/osmocore/utils.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther2011-01-16 17:37:27 +0100
committerHolger Hans Peter Freyther2011-01-16 20:29:48 +0100
commit52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba (patch)
treedeb75024f6b509c32eb618a94558cf336f5a2d61 /include/osmocore/utils.h
parentgsm 03.41: fix GSM341_MSG_CODE macro argument (diff)
downloadlibosmocore-52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba.tar.gz
libosmocore-52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba.tar.xz
libosmocore-52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba.zip
misc: Move the static_assert from logging to the utils
This is just an ordinary macro, no specific reason to have it in logging.h. This was compile tested with code from our osmo family.
Diffstat (limited to 'include/osmocore/utils.h')
-rw-r--r--include/osmocore/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
index 3574f7f..93cefbe 100644
--- a/include/osmocore/utils.h
+++ b/include/osmocore/utils.h
@@ -21,4 +21,6 @@ int hexparse(const char *str, uint8_t *b, int max_len);
char *hexdump(const unsigned char *buf, int len);
char *hexdump_nospc(const unsigned char *buf, int len);
+#define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1];
+
#endif