int IniInt::Load() { Mutex::Lock __(sMtx); if(IniChanged__(version)) { int64 v = ReadIniInt(id); value = IsNull(v) ? (*def)() : (int)v; IniSet__(version); } return value; }
IniInt64::operator int64() { Mutex::Lock __(si64Mtx); if(IniChanged__(version)) { value = ReadIniInt(id); if(IsNull(value)) value = (*def)(); IniSet__(version); } return value; }
bool ReadIniInt(dictionary *dict, const string& section, int &value, string &err) { return ReadIniInt(dict, section.c_str(), value, err); }