return pass;
}
-bool check_int_eq_impl(char const* file, int line, int64_t expected, int64_t actual)
+bool check_int_eq_impl(char const* file, int line, intmax_t expected, intmax_t actual)
{
bool const pass = expected == actual;
}
else
{
- fprintf(stderr, "FAIL %s:%d, expected \"%" PRId64 "\", got \"%" PRId64 "\"\n", file, line, expected, actual);
+ fprintf(stderr, "FAIL %s:%d, expected \"%jd\", got \"%jd\"\n", file, line, expected, actual);
}
}
return pass;
}
-bool check_uint_eq_impl(char const* file, int line, uint64_t expected, uint64_t actual)
+bool check_uint_eq_impl(char const* file, int line, uintmax_t expected, uintmax_t actual)
{
bool const pass = expected == actual;
}
else
{
- fprintf(stderr, "FAIL %s:%d, expected \"%" PRIu64 "\", got \"%" PRIu64 "\"\n", file, line, expected, actual);
+ fprintf(stderr, "FAIL %s:%d, expected \"%ju\", got \"%ju\"\n", file, line, expected, actual);
}
}
bool should_print(bool pass);
bool check_condition_impl(char const* file, int line, bool condition);
-bool check_int_eq_impl(char const* file, int line, int64_t expected, int64_t actual);
-bool check_uint_eq_impl(char const* file, int line, uint64_t expected, uint64_t actual);
+bool check_int_eq_impl(char const* file, int line, intmax_t expected, intmax_t actual);
+bool check_uint_eq_impl(char const* file, int line, uintmax_t expected, uintmax_t actual);
bool check_ptr_eq_impl(char const* file, int line, void const* expected, void const* actual);
bool check_str_eq_impl(char const* file, int line, char const* expected, char const* actual);