Browse Source Download (without any required ccan dependencies)
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.
#include <ccan/breakpoint/breakpoint.h>
int main(void)
{
breakpoint();
return 0;
}
CC0 (Public domain)