GDB (API)
Defines
/home/stan/gdb/src/gdb/common/gdb_assert.h File Reference

Go to the source code of this file.

Defines

#define gdb_static_assert(expr)   extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
#define gdb_assert(expr)
#define gdb_assert_fail(assertion, file, line, function)
#define gdb_assert_not_reached(message)   internal_error (__FILE__, __LINE__, _(message))

Define Documentation

#define gdb_assert (   expr)
Value:
((void) ((expr) ? 0 :                                                       \
           (gdb_assert_fail (#expr, __FILE__, __LINE__, ASSERT_FUNCTION), 0)))

Definition at line 33 of file gdb_assert.h.

#define gdb_assert_fail (   assertion,
  file,
  line,
  function 
)
Value:
internal_error (file, line, _("Assertion `%s' failed."),                    \
                  assertion)

Definition at line 57 of file gdb_assert.h.

#define gdb_assert_not_reached (   message)    internal_error (__FILE__, __LINE__, _(message))

Definition at line 69 of file gdb_assert.h.

#define gdb_static_assert (   expr)    extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]

Definition at line 25 of file gdb_assert.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines