summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
commit3c404128c4669a1f4f190e20a89553677717fc50 (patch)
tree2db4e5031089c800c4e00fd6244e578f44a7c910 /src/configuration.cpp
parent89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff)
downloadmanaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz
manaverse-3c404128c4669a1f4f190e20a89553677717fc50.zip
Add missing comments into defines.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index ef3c6cf2a..3d6f17ced 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -39,9 +39,9 @@
StringIntMap optionsCount;
#define GETLOG() if (logger) {logger->log("config get: " + key); \
if (mIsMain) optionsCount[key] = 1; }
-#else
+#else // DEBUG_CONFIG
#define GETLOG()
-#endif
+#endif // DEBUG_CONFIG
Configuration config; // XML file configuration reader
Configuration serverConfig; // XML file server configuration reader
@@ -342,9 +342,10 @@ ConfigurationObject::ConfigurationObject() :
mContainerOptions(),
mLogKeys(false),
mIsMain(false)
-#else
+#else // DEBUG_CONFIG
+
mContainerOptions()
-#endif
+#endif // DEBUG_CONFIG
{
}
@@ -366,7 +367,7 @@ Configuration::Configuration() :
#ifdef DEBUG_CONFIG
mLogKeys = false;
mIsMain = false;
-#endif
+#endif // DEBUG_CONFIG
}
void Configuration::cleanDefaults()
@@ -807,7 +808,8 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer)
if (optionsCount.find(i->first) == optionsCount.end())
logger->log("unused configuration option: " + i->first);
}
-#endif
+#endif // DEBUG_CONFIG
+
XmlTextWriterStartElement(writer, "option");
XmlTextWriterWriteAttribute(writer, "name", i->first.c_str());
XmlTextWriterWriteAttribute(writer, "value", i->second.c_str());
@@ -921,7 +923,7 @@ void Configuration::checkListeners(ConfigListener *const listener,
}
}
}
-#endif
+#endif // ENABLE_CHECKS
void Configuration::removeListeners(ConfigListener *const listener)
{