Re: wait state

From: Chris Gilbert (chris@buzzbee.freeserve.co.uk)
Date: 11/01/99


Nocturnal Occulto wrote:
>
> #define WAIT_STATE(ch, cycle) do { GET_WAIT_STATE(ch) = (cycle); }
> while(0)
>
> Curious whats the point with the do/while thing, why not just a simple
> GET_WAIT_STATE(ch) = (cycle); ?

Maybe it avoids ppl doing:
state = WAIT_STATE(ch, tmp);
or
WAIT_STATE(ch, tmp) = state;

Could be a hang over from some older code?

Chris


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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