void IniSetting::SystemParserCallback::onConstant(std::string &result, const std::string &name) { if (f_defined(name, false)) { result = f_constant(name).toString().toCppString(); } else { result = name; } }
void IniSetting::SystemParserCallback::onConstant(std::string &result, const std::string &name) { if (MemoryManager::TlsWrapper::isNull()) { // We can't load constants before the memory manger is up, so lets just // pretend they are strings I guess result = name; return; } if (f_defined(name, false)) { result = f_constant(name).toString().toCppString(); } else { result = name; } }
bool TestExtMisc::test_defined() { VERIFY(!f_defined("a")); return Count(true); }