openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

support preprocessor commands for openplanet version #487

Open XertroV opened 4 months ago

XertroV commented 4 months ago

It'd be nice to be able to have 2 sets of code corresponding to different openplanet versions be possible via preprocessor commands.

This might be annoying to automate considering the possible combinations, so maybe something in info.toml would be better. That way you can process it before the preprocessor step and only necessary defines need to be set. e.g., provide a list of openplanet versions in info toml, and each one gets a pair (OP_LTE_1_26_19 and OP_GT_1_26_19) of flags defined. (or something similar)

codecat commented 4 months ago

I'd much rather have a way for pre processor keys to have values attached to them:

#if OP_VERSION_MINOR >= 26
XertroV commented 4 months ago

Oh yeah, that makes sense.

codecat commented 4 months ago

Made a ccpp issue here: https://github.com/codecat/ccpp/issues/6