From 52c07ca6c5708e4b20d8a6b6f40d09f74fef43ba Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 Jan 2011 17:37:27 +0100 Subject: 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. --- include/osmocore/logging.h | 1 - include/osmocore/utils.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include/osmocore') 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 -- cgit v1.2.3