[freeciv-ai] Re: logging and ai explorer improvement patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, Aug 17, 2002 at 11:00:55AM +0000, Per I. Mathisen wrote:
> This patch primarily improves logging by providing and using some logging
> macros (defined in aitools.h).
> These are rather inflexible in that they don't take varargs (ie no
> "%s %d" messages),
freelog is also a macro and got this right. Is there a reason which I
overlooked?
#define unitlog(level, punit, args...) do { \
if ((level) != LOG_DEBUG) { \
real_unitlog((level), (punit), args); } \
} while(FALSE)
|
|