aboutsummaryrefslogtreecommitdiff
path: root/test/include
diff options
context:
space:
mode:
Diffstat (limited to 'test/include')
-rw-r--r--test/include/test.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/include/test.h b/test/include/test.h
index 3193c52..8cde34d 100644
--- a/test/include/test.h
+++ b/test/include/test.h
@@ -12,6 +12,10 @@ extern unsigned int TESTS_PASSED;
#define TEST_INIT unsigned int TESTS_RUN = 0, TESTS_PASSED = 0;
+#ifndef __func__
+#define __func__ ""
+#endif
+
#define ASSERT(EXPR) \
TESTS_RUN++; \
(EXPR && ++TESTS_PASSED) ? \