"version" private word
Igor Shirkalin
mathsoft at inbox.ru
Tue Oct 31 13:46:40 UTC 2017
Hello!
We need some conditional compilation using 'version'.
Say we have some code to be compiled for X86 and X86_64.
How can we do that using predefined (or other) versions?
Examples:
version(X86 || X86_64) // failed
version(X86) || version(X86_64) // failed
The following works but it is too verbose:
version(X86) {
version = X86_or_64;
}
version(X86_64) {
version = X86_or_64;
}
- IS
More information about the Digitalmars-d-learn
mailing list