mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Add CHECK_STRING testlib macro
This commit is contained in:
1 parent
e6db7f6a40
commit
77a5311c4b
8 files changed
+83
-273
No files matched your search
@@ -64,6 +64,14 @@ char fail_msg[65536] = {0};
|
||||
#define INCR_FAIL(msg, ...) \
|
||||
msg += snprintf(msg, sizeof(fail_msg) - (msg - fail_msg), ##__VA_ARGS__)
|
||||
|
||||
#define CHECK_STRING(string) \
|
||||
{ \
|
||||
const char* z = string; \
|
||||
if (z) { \
|
||||
return z; \
|
||||
} \
|
||||
}
|
||||
|
||||
int tests_run = 0;
|
||||
|
||||
uint64_t iterscale = 100;
|
||||
|
||||
Reference in new issue
Block a user