File diff r946:70fe894a35f5 → r947:94f6b865b768
macros.h
Show inline comments
 
@@ -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))