On Fri, 24 Apr 1998, Rasdan wrote: >const char *GET_TITLE(ch_data * ch) >{ > if (!ch->player.title) > return ("Not yet set."); > else > return (ch->player.title); >} #define GET_TITLE(ch) ((ch)->player.title ? (ch)->player.title : "Not set yet.") Course, then you lose the GET_TITLE(ch) = "foo"; ability... The current code is a balance of not getting in the way and error checking. (error checking when you need, but only when asked for) -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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