[gt-users] gt_assert
Giorgio Gonnella
ggonnell at yahoo.it
Sat Oct 17 09:59:48 CEST 2009
Hallo,
I am curious to know why the gt_assert() macro code is wrapped in a "do {...} while (false)" statement.
An then I have another question. Currently, when a gt_assert in the code is exiting on error, and the reason is not obvious, I open gdb, set a breakpoint on the line producing the error under the condition opposite to the assertion and run. Is there a simpler way to make the gdb stop at the broken assertion point? If not: as I got tired to manually set the breakpoint, I was asking myself, if it would not be of general interest to offer a debugging env option or cli option to let gt_assert() be transformed in assert() calls or call directly abort() or anyway raise() a signal.
Giorgio
More information about the gt-users
mailing list