aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-16 17:37:27 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-16 20:29:48 +0100
commit52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba (patch)
treedeb75024f6b509c32eb618a94558cf336f5a2d61
parentd126ab988b4f63c31e803dccbb2a08ac6f16e9ce (diff)
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.
-rw-r--r--include/osmocore/logging.h1
-rw-r--r--include/osmocore/utils.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocore/logging.h b/include/osmocore/logging.h
index 7f33155a..27e77341 100644
--- a/include/osmocore/logging.h
+++ b/include/osmocore/logging.h
@@ -19,7 +19,6 @@
#define DEBUGPC(ss, fmt, args...)
#endif
-#define static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1];
void logp(unsigned int subsys, char *file, int line, int cont, const char *format, ...) __attribute__ ((format (printf, 5, 6)));
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
index 3574f7f8..93cefbe6 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