]> git.ozlabs.org Git - ccan/blob - ccan/io/test/run-10-many-DEBUG.c
ccan/io: test custom io functions.
[ccan] / ccan / io / test / run-10-many-DEBUG.c
1 #define DEBUG
2 #define PORT "64010"
3 #define main real_main
4 int real_main(void);
5 #include "run-10-many.c"
6 #undef main
7 /* We stack overflow if we debug all of them! */
8 static bool debug_one(struct io_conn *conn)
9 {
10         return conn == buf[1].reader;
11 }
12 int main(void) { io_debug = debug_one; return real_main(); }