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.
This commit is contained in:
Holger Hans Peter Freyther 2011-01-16 17:37:27 +01:00
parent d126ab988b
commit 52c07ca6c5
2 changed files with 2 additions and 1 deletions

View 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)));

View 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