From 76c7f3b14e159539e512ac6f13019eea0bad1a04 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 7 Jan 2005 17:47:29 +0000 Subject: (svn r1416) Print sensible information in SafeTileAdd() if gcc is used --- macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'macros.h') diff --git a/macros.h b/macros.h index 227da3871..bd5604419 100644 --- a/macros.h +++ b/macros.h @@ -87,7 +87,7 @@ extern uint SafeTileAdd(uint x, int add, const char *exp, const char *file, int # define TILE_ADD(x,y) ((x)+(y)) #else # if defined(__GNUC__) -# define TILE_ADD(x,y) (SafeTileAdd((x),(y), "??", __FILE__, __LINE__)) +# define TILE_ADD(x,y) (SafeTileAdd((x),(y), #x ", " #y, __FILE__, __LINE__)) # else # define TILE_ADD(x,y) (SafeTileAdd((x),(y), #x ## ", " ## #y, __FILE__, __LINE__)) # endif -- cgit v1.2.3-54-g00ecf