]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-19-always-DEBUG.c
io: io_always, and zero-length operations support.
[ccan] / ccan / io / test / run-19-always-DEBUG.c
diff --git a/ccan/io/test/run-19-always-DEBUG.c b/ccan/io/test/run-19-always-DEBUG.c
new file mode 100644 (file)
index 0000000..4decacd
--- /dev/null
@@ -0,0 +1,8 @@
+#define DEBUG
+#define PORT "64019"
+#define main real_main
+int real_main(void);
+#include "run-19-always.c"
+#undef main
+static bool always_debug(struct io_conn *conn) { return true; }
+int main(void) { io_debug_conn = always_debug; return real_main(); }