4 #define CCAN_TAKE_DEBUG 1
5 #include <ccan/take/take.h>
6 #include <ccan/take/take.c>
7 #include <ccan/tap/tap.h>
15 /* We can take NULL. */
16 ok1(take(NULL) == NULL);
18 ok1(strstr(taken_any(), "run-debug.c:16:"));
19 ok1(taken(NULL)); /* Undoes take() */
24 /* We can take a real pointer. */
27 ok1(strends(taken_any(), "run-debug.c:25:p"));
28 ok1(taken(p)); /* Undoes take() */