summaryrefslogtreecommitdiffstats
path: root/ccan/str/test/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ccan/str/test/debug.c')
-rw-r--r--ccan/str/test/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ccan/str/test/debug.c b/ccan/str/test/debug.c
new file mode 100644
index 00000000..4bd384f2
--- /dev/null
+++ b/ccan/str/test/debug.c
@@ -0,0 +1,5 @@
+/* We can't use the normal "#include the .c file" trick, since this is
+ contaminated by str.h's macro overrides. So we put it in all tests
+ like this. */
+#define CCAN_STR_DEBUG 1
+#include <ccan/str/debug.c>
OpenPOWER on IntegriCloud