|
|
@@ -9,6 +9,9 @@
|
|
|
* help you annotate rare paths in your code for the convenience of the
|
|
|
* compiler and the reader.
|
|
|
*
|
|
|
+ * With CCAN_LIKELY_DEBUG defined, it provides statistics for each
|
|
|
+ * likely()/unlikely() call.
|
|
|
+ *
|
|
|
* License: LGPL (v2.1 or any later version)
|
|
|
* Author: Rusty Russell <rusty@rustcorp.com.au>
|
|
|
*
|
|
|
@@ -35,11 +38,20 @@ int main(int argc, char *argv[])
|
|
|
return 1;
|
|
|
|
|
|
if (strcmp(argv[1], "depends") == 0) {
|
|
|
+#ifdef CCAN_LIKELY_DEBUG
|
|
|
printf("ccan/str\n");
|
|
|
printf("ccan/htable\n");
|
|
|
printf("ccan/hash\n");
|
|
|
+#endif
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ if (strcmp(argv[1], "testdepends") == 0) {
|
|
|
+#ifndef CCAN_LIKELY_DEBUG
|
|
|
+ printf("ccan/str\n");
|
|
|
+ printf("ccan/htable\n");
|
|
|
+ printf("ccan/hash\n");
|
|
|
+#endif
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
return 1;
|
|
|
}
|