Re: assert()?

jelson@blaze.cs.jhu.edu
Date: 03/19/94


> I'm getting warnings similar to this one a lot:
> 
>     __assert(( victim ), "victim", __FILE__, __LINE__) ;
> magic.c 1063 Warning 88: argument type incorrect
>                          Expecting "int", found "struct char_data *"
> 
> all over magic.c.. what does the assert() function do anyway?

assert() is for error detection.  What kind of operating system are you
running under?  Anyway, you can probably get rid of those errors by
changing
   assert(victim)
to
   assert(victim != NULL)

-je



This archive was generated by hypermail 2b30 : 12/07/00 PST