_info 607 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "config.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. /**
  5. * breakpoint - break if the program is run under gdb.
  6. *
  7. * This code allows you to insert breakpoints within a program. These will
  8. * do nothing unless your program is run under GDB.
  9. *
  10. * License: CC0 (Public domain)
  11. *
  12. * Example:
  13. * #include <ccan/breakpoint/breakpoint.h>
  14. *
  15. * int main(void)
  16. * {
  17. * breakpoint();
  18. * return 0;
  19. * }
  20. */
  21. int main(int argc, char *argv[])
  22. {
  23. /* Expect exactly one argument */
  24. if (argc != 2)
  25. return 1;
  26. if (strcmp(argv[1], "depends") == 0) {
  27. printf("ccan/compiler\n");
  28. return 0;
  29. }
  30. return 1;
  31. }