The RSDKv3/RSDKv4 script compiler is capable of checking any text for platform checks, as seen here in the RSDKv4 decomp:
There are a variety of platforms the decomps' compilers can check, and with them being open source, they can be modified to add even more. It might be a good idea to add a feature to define custom platform flags to include while compiling scripts in RE2 to match the flexibility of the decomps' compilers.
The RSDKv3/RSDKv4 script compiler is capable of checking any text for platform checks, as seen here in the RSDKv4 decomp: There are a variety of platforms the decomps' compilers can check, and with them being open source, they can be modified to add even more. It might be a good idea to add a feature to define custom platform flags to include while compiling scripts in RE2 to match the flexibility of the decomps' compilers.