[freeciv-ai] Re: [Freeciv-Dev] (PR#9886) better AI unit assert
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9886 >
Per I. Mathisen wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9886 >
>
> This patch adds new function ai_assert_unit() which replaces assert(). It
> improves on the latter by outputting more data before aborting. In
> particular, if DEBUG is compiled in, we remember which function and what
> line we set the unit's role, so that we can see where role errors start.
But can't you get this information from the backtrace anyway?
jason
- [freeciv-ai] Re: [Freeciv-Dev] (PR#9886) better AI unit assert,
Jason Short <=
|
|