From 528e6d973ed86a3923d6fdbadd2e02c749394d80 Mon Sep 17 00:00:00 2001 From: darkvater Date: Sat, 8 Jan 2005 23:59:49 +0000 Subject: (svn r1437) -Fix: Safetileadd preprocessor magic is the same as for GCC and no longer extern --- macros.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'macros.h') diff --git a/macros.h b/macros.h index bd5604419..69364cfcc 100644 --- a/macros.h +++ b/macros.h @@ -81,16 +81,12 @@ enum { #define TILE_ASSERT(x) assert( TILE_MASK(x) == (x) ); -extern uint SafeTileAdd(uint x, int add, const char *exp, const char *file, int line); +uint SafeTileAdd(uint x, int add, const char *exp, const char *file, int line); #if !defined(_DEBUG) # define TILE_ADD(x,y) ((x)+(y)) #else -# if defined(__GNUC__) -# 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 +# define TILE_ADD(x,y) (SafeTileAdd((x),(y), #x ", " #y, __FILE__, __LINE__)) #endif #define TILE_ADDXY(tile, x, y) TILE_ADD(tile, TILE_XY(x,y)) -- cgit v1.2.3-54-g00ecf