08.06.2012 7:31, Andrej Mitrovic написал:
On 6/8/12, Bernard Helyer<[email protected]> wrote:
Well that doesn't seem to work.
Try this:
version(Win64) {
align(8):
} else {
align(4):
}
This will not work as you expect. Just like
---
version(v1) { class }
else { struct }
S { int i; }
---
will not compile. It's D and there is no C preprocessor:
---
version(Win64) {
align(8):
... aligned 8 ...
} else {
align(4):
... aligned 4 ...
}
... default aligned ...
---
--
Денис В. Шеломовский
Denis V. Shelomovskij