Merge commit 'refs/top-bases/linux-configure-branch' into linux-configure-branch
This commit is contained in:
commit
9d9b599b33
|
@ -65,12 +65,13 @@ extern void __assert(const char *, const char *, int);
|
||||||
|
|
||||||
/* BEGIN CSTYLED */
|
/* BEGIN CSTYLED */
|
||||||
#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE) do { \
|
#define VERIFY3_IMPL(LEFT, OP, RIGHT, TYPE) do { \
|
||||||
if (!((TYPE)(LEFT) OP (TYPE)(RIGHT))) { \
|
const TYPE __left = (TYPE)(LEFT); \
|
||||||
|
const TYPE __right = (TYPE)(RIGHT); \
|
||||||
|
if (!(__left OP __right)) { \
|
||||||
char *__buf = alloca(256); \
|
char *__buf = alloca(256); \
|
||||||
(void) snprintf(__buf, 256, "%s %s %s (0x%llx %s 0x%llx)", \
|
(void) snprintf(__buf, 256, "%s %s %s (0x%llx %s 0x%llx)", \
|
||||||
#LEFT, #OP, #RIGHT, \
|
#LEFT, #OP, #RIGHT, \
|
||||||
(u_longlong_t)((TYPE)(LEFT)), #OP, \
|
(u_longlong_t)__left, #OP, (u_longlong_t)__right); \
|
||||||
(u_longlong_t)((TYPE)(RIGHT))); \
|
|
||||||
__assert(__buf, __FILE__, __LINE__); \
|
__assert(__buf, __FILE__, __LINE__); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
Loading…
Reference in New Issue