misc: Move the static_assert from logging to the utils
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 16 Jan 2011 16:37:27 +0000 (17:37 +0100)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 16 Jan 2011 19:29:48 +0000 (20:29 +0100)
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.

include/osmocore/logging.h
include/osmocore/utils.h

index 7f33155..27e7734 100644 (file)
@@ -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)));
 
index 3574f7f..93cefbe 100644 (file)
@@ -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