This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: seekdir dereferences null
> -----Original Message-----
> From: newlib-owner@sourceware.org
> [mailto:newlib-owner@sourceware.org] On Behalf Of duane ellis
> Sent: Friday, December 05, 2008 01:33
> Part of me wants this though... Perhaps - NULL check *COULD* be in a
> #ifdef DEBUG build ....
>
> or maybe something like:
>
> #if defined( DEBUG ) || defined( PARMCHECKING_ENABLED)
> #define __parmcheck_NOT_NULL( PTR ) ...
> #endif
>
assert (p);