[code] Races won't compile

From: Allan M. Grant (agrant@negia.net)
Date: 12/15/96


I am trying to implement races like told in a doc on the ftp site. I did
all the changes but I am getting some sort of error. Can't figure out
whats wrong. Everything seems JUST fine.
Here is the error when trying to compile:
        cl -c /nologo /I. /II:\MSDEVSTD\INCLUDE comm.c
comm.c
utils.h(425) : error C2143: syntax error : missing ')' before '->'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

P/S I am compiling under MSVC++ with Win95

Now here is a cut from utils.h around line 425:


#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_PALADIN(ch)          (!IS_NPC(ch) && \
                                (GET_CLASS(ch) == CLASS_PALADIN))
#define IS_HUMAN(ch)            (!IS_NPC(ch) && \
                                (GET_RACE(ch) == RACE_HUMAN))
#define IS_ELF(ch)              (!IS_NPC(ch) && \
                                (GET_RACE(ch) ==
RACE_ELF))                 <------ LINE 425
#define IS_GNOME(ch)            (!IS_NPC(ch) &&
\                            
                                (GET_RACE(ch) == RACE_GNOME))
#define IS_FAIRY(ch)            (!IS_NPC(ch) && \
                                (GET_RACE(ch) == RACE_FAIRY))
#define IS_HALF(ch)             (!IS_NPC(ch) && \
                                (GET_RACE(ch) == RACE_HALF))
#define IS_GIANT(ch)            (!IS_NPC(ch) && \
                                (GET_RACE(ch) == RACE_GIANT))

Hmm... wonder whats wrong... Hope you can **H*E*L*P**M*E*!*!*!**
:)

Thanks,

Pheonix
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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