mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Replace cDebug() with Logs::DebugEnabled().
This commit is contained in:
@@ -7,18 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
extern bool gDebug;
|
||||
inline bool cDebug() {
|
||||
#if defined _DEBUG
|
||||
return true;
|
||||
#else
|
||||
return gDebug;
|
||||
#endif
|
||||
}
|
||||
inline void cSetDebug(bool debug) {
|
||||
gDebug = debug;
|
||||
}
|
||||
|
||||
#define DeclareReadSetting(Type, Name) extern Type g##Name; \
|
||||
inline const Type &c##Name() { \
|
||||
return g##Name; \
|
||||
|
Reference in New Issue
Block a user