Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2001:
[Freeciv-Dev] autodeclaired macro arguments
Home

[Freeciv-Dev] autodeclaired macro arguments

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] autodeclaired macro arguments
From: Thue <thue@xxxxxxx>
Date: Wed, 10 Jan 2001 00:54:15 +0100

With this patch the macros adjc_iterate, square_iterate and iterate_outward 
declaire the arguments they iterate with automatically. IE, instead of 

int x, y
square_iterate(x,y) {
  do_something(x, y);
square_iterate_end;

you just do 

square_iterate(x,y) {
  do_something(x, y);
square_iterate_end;

(as it is already done in some other macros like unit_list_iterate)
-Thue

Attachment: macro_auto.diff
Description: Text Data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] autodeclaired macro arguments, Thue <=