32 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
33 #include <SDL_mutex.h>
39 #define DEBUGLOG(str) \
40 if (logger && !mIgnore) \
42 #define DEBUGLOG2(str, pos, comment) \
43 if (logger && !mIgnore) \
44 logger->dlog2(str, pos, comment)
45 #define DEBUGLOGSTR(str) \
48 #define IGNOREDEBUGLOG mIgnore = Net::isIgnorePacket(mId)
50 #define DEBUGLOG(str) {}
51 #define DEBUGLOG2(str, comment) {}
52 #define DEBUGLOGSTR(str)
53 #define IGNOREDEBUGLOG {}
56 #define UNIMPLEMENTEDPACKET \
57 logger->unimplemented(msg.getId())
59 #define UNIMPLEMENTEDPACKETFIELD(field) \
60 logger->unimplemented(msg.getId(), field)
62 #define WRONGPACKETSIZE \
63 logger->unimplemented(CAST_U32(mId), mLength, mPos)
86 void setLogFile(
const std::string &logFilename);
164 void log(
const std::string &str);
168 #ifdef ENABLEDEBUGLOG
172 void dlog(
const std::string &str);
174 void dlog2(
const std::string &str,
176 const char*
const comment);
191 void error(
const std::string &error_text)
201 void safeError(
const std::string &error_text)
214 const uint32_t id3)
const;
void setLogToStandardOut(const bool value)
void log(const char *const log_text,...)
void log_r(const char *const log_text,...)
void unimplemented(const int id)
void assertLog(const char *const log_text,...)
void log1(const char *const log_text)
void safeError(const std::string &error_text) __attribute__((noreturn))
void setReportUnimplemented(const bool n)
bool mReportUnimplemented
void error(const std::string &error_text) __attribute__((noreturn))
volatile bool mThreadLocked
void setDebugLog(const bool n)
void dlog2(const std::string &str, const int pos, const char *const comment)
void dlog(const std::string &str)
std::vector< std::string > mDelayedLog
void setLogFile(const std::string &logFilename)
#define A_DELETE_COPY(func)
union EAthena::ItemFlags __attribute__((packed))