Re: parse error

From: Alex (fletchra@qsilver.queensu.ca)
Date: 12/18/00


> act.movement.c:506: parse error before `('
>
> #define OPEN_DOOR(room, obj, door)      ((obj) ?
> line 506        (TOGGLE_BIT(GET_OBJ_VAL(obj, 1), CONT_CLOSED)) :
>                 (TOGGLE_BIT(EXITN(room, door)->exit_info, EX_CLOSED)))

You need to end lines with '\' if they wrap to the next line for
preprocessor defines:

#define OPEN_DOOR(room, obj, door)      ((obj) ? \
                (TOGGLE_BIT(GET_OBJ_VAL(obj, 1), CONT_CLOSED)) : \
                (TOGGLE_BIT(EXITN(room, door)->exit_info, EX_CLOSED)))

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT