URL:
<http://gna.org/patch/?5421>
Summary: FIELD_RANGE_ASSERT
Project: Freeciv
Submitted by: cazfi
Submitted on: Sat 08 Nov 2014 07:11:36 PM EET
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.6.0
_______________________________________________________
Details:
Currently dataio messages about illegal values to a network field tell that
something is wrong, but debugging these cases is impossible. There's no way to
tell which field, often even which packet, is the problematic one. In some
test setups I want to have them as fatal asserts instead of just error
message, so I get to look the situation in a debugger.
This patch makes it easy to turn them to asserts (or to give checks any other
implementation) by defining these checks via new macro FIELD_RANGE_TEST()
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 08 Nov 2014 07:11:36 PM EET Name: FieldRangeAssert.patch Size: 5kB
By: cazfi
<http://gna.org/patch/download.php?file_id=22845>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?5421>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev