AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
IntermediateValues.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  MMAP
 

Macros

#define DEBUG_WRITE(fileExtension, data)
 

Macro Definition Documentation

◆ DEBUG_WRITE

#define DEBUG_WRITE (   fileExtension,
  data 
)
Value:
do { \
sprintf(fileName, (name + fileExtension).c_str(), mapID, tileY, tileX); \
FILE* file = fopen(fileName, "wb"); \
if (!file) \
{ \
char message[1024]; \
sprintf(message, "%sFailed to open %s for writing!\n", tileString, fileName); \
perror(message); \
} \
else \
debugWrite(file, data); \
if (file) fclose(file); \
printf("%sWriting debug output... \r", tileString); \
} while (false)