On Fri, 20 Mar 1998, Paul Siegel wrote:
>A good idea. I actually keep two copies of fight.c one which is the
>normal file, the other (renamed fight.debug.c) is filled with send_to_char
>calls to output just about every detail you could possibly want. I use
>just for testing to see what's going on. As of right now, I am the only
>user, so I'm not too worried about pissing me off. :)
#if 1 /* define to 1 for debugging */
#define DPRINTF(x) printf(x)
#else
#define DPRINTF(x)
#endif
[...]
void foo()
{
[...]
DPRINTF(("hi %s\n", buf));
[...]
}
That's from memory but that's the concept.
--
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