diff options
-rw-r--r-- | macros.h | 2 | ||||
-rw-r--r-- | misc.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -740,7 +740,7 @@ extern uint SafeTileAdd(uint tile, int add, const char *exp, const char *file, i sprintf(buf, "TILE_ADD(%s) when adding 0x%.4X and %d failed", exp, tile, add); #if !defined(_DEBUG) || !defined(_MSC_VER) - printf("%s\n", buf); + fprintf(stderr, "%s:%d %s\n", file, line, buf); #else _assert(buf, (char*)file, line); #endif |