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