Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] Re: logging and ai explorer improvement patch
Home

[freeciv-ai] Re: logging and ai explorer improvement patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: logging and ai explorer improvement patch
From: rf13@xxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 19 Aug 2002 16:55:50 +0200

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) 



[Prev in Thread] Current Thread [Next in Thread]