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:
parent
26ec26d7bb
commit
cb78e5adfa
1 changed files with 3 additions and 1 deletions
|
@ -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_ */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue