MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsSignedVarMemType

Function IsSignedVarMemType

src/settings.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123using SettingDescProcList = void(IniFile &ini, std::string_view grpname, StringList &list);
124
125static bool IsSignedVarMemType(VarType vt)
126{
127 switch (GetVarMemType(vt)) {
128 case SLE_VAR_I8:
129 case SLE_VAR_I16:
130 case SLE_VAR_I32:
131 case SLE_VAR_I64:
132 return true;
133 }
134 return false;
135}
136
137/**
138 * IniFile to store a configuration.

Callers 1

FormatValueMethod · 0.85

Calls 1

GetVarMemTypeFunction · 0.85

Tested by

no test coverage detected