summaryrefslogtreecommitdiff
path: root/tests-clar/clar_libgit2.h
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-04-23 17:28:11 -0700
committerVicent Martí <tanoku@gmail.com>2012-04-23 17:28:11 -0700
commitf9f2344bd4ba6c81a96959509ba59f8563b60265 (patch)
treebb429dc1d066d433ab39076d3369cde56a48bc83 /tests-clar/clar_libgit2.h
parent4795807ad5b4827ff4bdb801641ce8a4d5a8557e (diff)
parent26515e73a11b6f6c25e316ece2a6243aba7af9f5 (diff)
downloadlibgit2-f9f2344bd4ba6c81a96959509ba59f8563b60265.tar.gz
Merge pull request #632 from arrbee/win64-cleanup
Code clean up, including fixing warnings on Windows 64-bit build
Diffstat (limited to 'tests-clar/clar_libgit2.h')
-rw-r--r--tests-clar/clar_libgit2.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h
index bb2feee6a..4d338efca 100644
--- a/tests-clar/clar_libgit2.h
+++ b/tests-clar/clar_libgit2.h
@@ -25,26 +25,6 @@
*/
#define cl_git_fail(expr) cl_must_fail(expr)
-/**
- * Wrapper for string comparison that knows about nulls.
- */
-#define cl_assert_strequal(a,b) \
- cl_assert_strequal_internal(a,b,__FILE__,__LINE__,"string mismatch: " #a " != " #b)
-
-GIT_INLINE(void) cl_assert_strequal_internal(
- const char *a, const char *b, const char *file, int line, const char *err)
-{
- int match = (a == NULL || b == NULL) ? (a == b) : (strcmp(a, b) == 0);
- if (!match) {
- char buf[4096];
- snprintf(buf, 4096, "'%s' != '%s'", a, b);
- clar__assert(0, file, line, err, buf, 1);
- }
-}
-
-#define cl_assert_intequal(a,b) \
- do { if ((a) != (b)) { char buf[128]; snprintf(buf,128,"%d != %d",(a),(b)); clar__assert(0,__FILE__,__LINE__,#a " != " #b,buf,1); } } while (0)
-
/*
* Some utility macros for building long strings
*/