summaryrefslogtreecommitdiff
path: root/lib/ccan/str/test/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ccan/str/test/debug.c')
-rw-r--r--lib/ccan/str/test/debug.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ccan/str/test/debug.c b/lib/ccan/str/test/debug.c
new file mode 100644
index 0000000000..4bd384f2c4
--- /dev/null
+++ b/lib/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>