forked from mirror/OpenTTD
(svn r1416) Print sensible information in SafeTileAdd() if gcc is used
This commit is contained in:
2
macros.h
2
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
|
||||
|
Reference in New Issue
Block a user