OR in version conditional compilation

IGotD- nise at nise.com
Wed Mar 18 16:23:26 UTC 2020


I have not seen any example where version has several OR matches.

Example idiom:

version(X86_64 || X86)
{

}
else version(ARM || Thumb)
{

}...

you get the idea. So is this possible at all or do you have to 
duplicate the code for each version identifier despite they are 
equal for many version identifiers?


More information about the Digitalmars-d-learn mailing list