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


     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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