Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [PATCH] directional code cleanup: patch #1
Home

[Freeciv-Dev] Re: [PATCH] directional code cleanup: patch #1

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] directional code cleanup: patch #1
From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
Date: Wed, 15 Aug 2001 12:28:20 -0700 (PDT)

On Wed, 15 Aug 2001, Gregory Berkolaiko wrote:
> 
> how about a macro?  it's faster than function and you can put checks
> there too, although you'll have to forgo type checking.

You're joking, right?  right?  With a macro you would still need the global
variable to look up the names in.  Didn't your mother teach you to avoid
global variables unless there is a good reason not to?  And this is used for
printing debugging output, so I hardly think the speed matters so much to use
a macro.



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