#define ASSERT_STRING_EQUALS(value, string) \
do { \
if (!value) { \
- LOG_ERROR("Failed assertion: " #value " is NULL, expected " #string " at %s:%d\n", \
- __FILE__, __LINE__, __PRETTY_FUNCTION__); \
+ LOG_ERROR("Failed assertion: %s is NULL, expected %s at %s:%d %s\n", \
+ #value, #string, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
goto FAIL; \
} \
if (strcmp(string, value) != 0) { \
- LOG_ERROR("Failed assertion: " #value " (%s) != " #string " %s:%d %s\n", \
- value, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
+ LOG_ERROR("Failed assertion: " #value " (%s) != " #string " (%s) %s:%d %s\n", \
+ value, string, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
goto FAIL; \
} \
} while (0)