MCPcopy Create free account
hub / github.com/defold/defold / IsSupportedVersion

Function IsSupportedVersion

engine/script/src/script_table.cpp:172–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 } g_ScriptTableInit;
171
172 static bool IsSupportedVersion(const TableHeader& header)
173 {
174 bool supported = false;
175 switch(header.m_Version)
176 {
177 case 1:
178 case 2:
179 case 3:
180 case 4:
181 case 5:
182 supported = true;
183 break;
184 default:
185 break;
186 }
187 return supported;
188 }
189
190 // Lua 5.1 stores numeric keys as lua_Number. Split the conversion so
191 // 0xffffffff can round-trip on wasm, where casting that double directly to

Callers 1

PushTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected