Re: [ Idea ] actf() ?!?!

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/08/97


On Wed, 8 Oct 1997, Daniel Koepke wrote:

>No, it'd not make sense and it'd be difficult.  You see, for an
>"xxxf()" function to work, the format string has to be last.
>That means,
>
>  act(char *, bool, char_data *, void *, void *, int);
>
>would have to be changed to
>
>  actf(bool, char_data *, void *, void *, int, char *, ...);

I simply made a #define that checks for 6 arguments and switches them.
If it is 7 arguments or more it doesn't...

(Look at the mudlog/log/send_to patch.)

--
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/08/00 PST