RE: [AD] more asserts

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] more asserts

> Well, I don't mind putting one or two ASSERTs in critical
> places in the
> low-level code, but systematically putting one each time you see a *

Wherever you make an assumption on anything, I'd say. Pointers are
just the most obvious cases.
In particular, I put ASSERTs in code which wasn't using the passed
pointer parameters. Nothing would crash, but it may help catch bugs
elsewhere.
MHO.

--
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/