summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Gerwitz <mike@mikegerwitz.com>2013-12-15 01:52:41 -0500
committerAmadeusz Sławiński <amade@asmblr.net>2015-06-26 15:29:19 +0200
commit36e568685a8fafe6f03310c4ccb90f01044fe839 (patch)
tree5e7aec48db39a803b8022b80bd21bbecc71316bb /src/tests
parent3b5acf89b4ae939beba647b8fda4ca0864e31351 (diff)
downloadscreen-36e568685a8fafe6f03310c4ccb90f01044fe839.tar.gz
Added FAILLOC_PTR test macro for convenience
No need to bother providing a return type for pointers in many cases
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/macros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/macros.h b/src/tests/macros.h
index 292990d..ac6affe 100644
--- a/src/tests/macros.h
+++ b/src/tests/macros.h
@@ -108,6 +108,7 @@ extern const long double randoml[1000];
#define ASSERT_REALLOC(cmp, x) x
#define ASSERT_NOALLOC(cmp, x) x
#define MALLOC_RESET_COUNT()
- #define FAILLOC(x) /* no portable equivalent! */
+ #define FAILLOC(type, x) /* no portable equivalent! */
#define ASSERT_GCC(x)
#endif
+#define FAILLOC_PTR(x) FAILLOC(void *, x)