Add VERSION_nnn_OR_GREATER conditional compilation symbol?
Not Enough Votes
We currently have a `VERION_nnn` symbol since around 1.185
However, when making mods we want to be able to work on older versions while still being able to use certain features (such as the depositSeed parameter added to IMyVoxelMaps.CreateProceduralVoxelMap in 1.209), we need to have a negative condition on every old version in order for our mod scripts to be able to compile on old versions.e.g.
voxelmap = MyAPIGateway.Session.VoxelMaps.CreateProceduralVoxelMap(
details.Seed,
details.Size,
MatrixD.CreateTranslation(details.Position)
#if !(VERSION_208 || VERSION_207 || VERSION_206 || VERSION_205 || VERSION_204 || VERSION_203 || VERSION_202 || VERSION_201 || VERSION_200 || VERSION_199 || VERSION_198 || VERSION_197 || VERSION_196 || VERSION_195 || VERSION_194)
, details.GeneratorSeed
#endif
);I am wondering if it'd be possible to add VERSION_nnn_OR_GREATER to the conditional compilation symbols? I understand this would probably require a loop going from some old version number to the current version number, but it would make code like the above nicer to work with.
I like this feedback
Replies have been locked on this page!