Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2002:
[Freeciv-Dev] Macros in map.h
Home

[Freeciv-Dev] Macros in map.h

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Macros in map.h
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Tue, 1 Oct 2002 18:31:50 +0100 (BST)

Jason,

Is there any particular reason why there is 
        MAPSTEP(dest_x, dest_y, src_x, src_y, dir)
macro in map.h and no macro like this:
#define STEP(x, y, dir)                                 \
(    (x) += DIR_DX[(dir)],                              \
     (y) += DIR_DY[(dir)],                              \
     normalize_map_pos(&(x), &(y)))

?



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