~ubuntu-branches/ubuntu/vivid/manaplus/vivid

« back to all changes in this revision

Viewing changes to src/logger.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2014-09-30 18:10:18 UTC
  • mfrom: (1.1.35)
  • Revision ID: package-import@ubuntu.com-20140930181018-pb73a0ogw29tjv8k
Tags: 1.4.9.27-1
* New upstream release.
* Bump Standards-Version to 3.9.6 (no changes required).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "localconsts.h"
34
34
 
35
35
#ifdef ENABLEDEBUGLOG
36
 
#define DEBUGLOG(msg) if (logger) logger->dlog(msg)
37
 
#else
38
 
#define DEBUGLOG(msg) {}
39
 
#endif
40
 
 
41
 
#ifdef ENABLEDEBUGLOG
42
 
#define DEBUGLOG2(msg, pos, comment) \
43
 
    if (logger) \
44
 
        logger->dlog2(msg, pos, comment)
45
 
#else
46
 
#define DEBUGLOG2(msg, comment) {}
 
36
#define DEBUGLOG(str) \
 
37
    if (logger && !mIgnore) \
 
38
        logger->dlog(str)
 
39
#define DEBUGLOG2(str, pos, comment) \
 
40
    if (logger && !mIgnore) \
 
41
        logger->dlog2(str, pos, comment)
 
42
#define IGNOREDEBUGLOG mIgnore = Net::isIgnorePacket(mId)
 
43
#else
 
44
#define DEBUGLOG(str) {}
 
45
#define DEBUGLOG2(str, comment) {}
 
46
#define IGNOREDEBUGLOG {}
47
47
#endif
48
48
 
49
49
/**