Re: Pointers and obj_proto

From: Ron Cole (rcole@EZY.NET)
Date: 10/09/97


>well anyway, my question is this:
>How can i do an if() check to see if
>GET_OBJ_SHORT(obj) != GET_OBJ_SHORT(obj_proto[i])

Pretty close, you just need an & in there, I think.  ie:

GET_OBJ_SHORT(obj) != GET_OBJ_SHORT(&(obj_proto[i]))

I'm not sure if the extra parens are needed or not, I always forget the
precedence...

Ron


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



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