mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:54:01 +01:00
+ i2p::config::IsDefault
This commit is contained in:
parent
e056c9c135
commit
70f72a78f6
11
Config.cpp
11
Config.cpp
|
@ -223,6 +223,15 @@ namespace config {
|
|||
|
||||
void Finalize() {
|
||||
notify(m_Options);
|
||||
};
|
||||
}
|
||||
|
||||
bool IsDefault(const char *name) {
|
||||
if (!m_Options.count(name))
|
||||
throw "try to check non-existent option";
|
||||
|
||||
if (m_Options[name].defaulted())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
} // namespace config
|
||||
} // namespace i2p
|
||||
|
|
Loading…
Reference in a new issue