Re: [CODE]

From: Invincibill (wlong@E-SERVER.NET)
Date: 09/25/98


you are calling macros. look at the GET_CLASS() macro. i would bet thats
where your problem is.
but check the IS_NPC() macro too, maybe even OUTSIDE() or ROOM_FLAGGED()


Tim Brophy wrote:
>
> I can't seem to find the damn missing ')' before the '->'.  At least
> thats what my compiler tells me the error is in utils.h.
>
> Anybody have a clue....i narrowed it down to this area of the file.
>
> #define CLASS_ABBR(ch) (IS_NPC(ch) ? "--" :
> class_abbrevs[(int)GET_CLASS(ch)])
>
> #define IS_MAGIC_USER(ch)       (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_MAGIC_USER))
> #define IS_CLERIC(ch)           (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_CLERIC))
> #define IS_THIEF(ch)            (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_THIEF))
> #define IS_WARRIOR(ch)          (!IS_NPC(ch) && \
>                                 (GET_CLASS(ch) == CLASS_WARRIOR))
> #define IS_HUMAN(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_HUMAN))
>
> #define IS_ELF(ch)              (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_ELF))
>
> #define IS_HOBBIT(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_HOBBIT))
>
> #define IS_FAIRIE(ch)            (!IS_NPC(ch) && \
>                                 (GET_RACE(ch) == RACE_FAIRIE))
>
> #define OUTSIDE(ch) (!ROOM_FLAGGED((ch)->in_room, ROOM_INDOORS))
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+

--
reply to wlong<@>e-server.net...spam avoidance policy in effect.
check out www.giftsgalore.com, lots 'o neat stuff there.
GO JOHNNY!!! GO BILL!!!


     +------------------------------------------------------------+
     | 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/15/00 PST