Add a pointer comparison function.

This commit is contained in:
Dag-Erling Smørgrav 2014-08-02 23:54:58 +00:00 committed by des
parent ce567a72e0
commit 5875ade2ed
2 changed files with 2 additions and 0 deletions

1
t/t.h
View file

@ -102,6 +102,7 @@ t_compare_num(x32, uint32_t);
t_compare_num(i64, int64_t); t_compare_num(i64, int64_t);
t_compare_num(u64, uint64_t); t_compare_num(u64, uint64_t);
t_compare_num(x64, uint64_t); t_compare_num(x64, uint64_t);
t_compare_num(ptr, void *);
#undef t_compare_num #undef t_compare_num
/* /*

View file

@ -111,5 +111,6 @@ t_compare_num(x32, uint32_t, "0x%" PRIx32);
t_compare_num(i64, int64_t, "%" PRId64); t_compare_num(i64, int64_t, "%" PRId64);
t_compare_num(u64, uint64_t, "%" PRIu64); t_compare_num(u64, uint64_t, "%" PRIu64);
t_compare_num(x64, uint64_t, "0x%" PRIx64); t_compare_num(x64, uint64_t, "0x%" PRIx64);
t_compare_num(ptr, void *, "%p");
#undef t_compare_num #undef t_compare_num