1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

workaround for macro collision caused by libwebsockets (already fixed in next las upstream)

This commit is contained in:
Steffen Vogel 2015-12-04 01:50:21 +01:00
parent 26ec26d7bb
commit cb78e5adfa

View file

@ -127,11 +127,13 @@ int version_compare(struct version *a, struct version *b);
int version_parse(const char *s, struct version *v);
/** Check assertion and exit if failed. */
#define assert(exp) do { \
#ifndef assert
#define assert(exp) do { \
if (!EXPECT(exp, 0)) \
error("Assertion failed: '%s' in %s(), %s:%d", \
XSTR(exp), __FUNCTION__, __BASE_FILE__, __LINE__); \
} while (0)
#endif
#endif /* _UTILS_H_ */