Skip to content

Commit 85a5103

Browse files
committed
warn in release builds about usage of deprecated functions in unitsync, too
1 parent 41a9f90 commit 85a5103

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

tools/unitsync/unitsync.cpp

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,14 @@ class CMessageOnce
106106
const std::string message;
107107
};
108108

109-
#ifdef DEBUG
110-
#define DEPRECATED \
111-
static CMessageOnce msg( \
112-
"The deprecated unitsync function " \
113-
+ std::string(__FUNCTION__) + " was called." \
114-
" Please update your lobby client"); \
115-
msg.print(); \
116-
SetLastError("deprecated unitsync function called: " \
117-
+ std::string(__FUNCTION__))
118-
#else
119-
#define DEPRECATED
120-
#endif
109+
#define DEPRECATED \
110+
static CMessageOnce msg( \
111+
"The deprecated unitsync function " \
112+
+ std::string(__FUNCTION__) + " was called." \
113+
" Please update your lobby client"); \
114+
msg.print(); \
115+
SetLastError("deprecated unitsync function called: " \
116+
+ std::string(__FUNCTION__))
121117

122118

123119
//////////////////////////

0 commit comments

Comments
 (0)