Browse Source Download (without any required ccan dependencies)

Module:

breakpoint

Summary:

break if the program is run under gdb.

Dependencies:

Description:

This code allows you to insert breakpoints within a program. These will do nothing unless your program is run under GDB.

Example:

#include <ccan/breakpoint/breakpoint.h>

int main(void)
{
        breakpoint();
        return 0;
}

License:

CC0 (Public domain)