TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
IntermediateValues.cpp File Reference
+ Include dependency graph for IntermediateValues.cpp:

Namespaces

 MMAP
 

Macros

#define DEBUG_WRITE(fileExtension, data)
 

Macro Definition Documentation

#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)
#define false
Definition: CascPort.h:18
#define output
Definition: wire_format_lite.h:381
std::string sprintf(CStringRef format, ArgList args)
Definition: format.h:3096
void printf(BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args)
Definition: format.h:3083