align number

Denis Shelomovskij verylonglogin.reg at gmail.com
Thu Jun 7 21:16:16 PDT 2012


08.06.2012 7:31, Andrej Mitrovic написал:
> On 6/8/12, Bernard Helyer<b.helyer at gmail.com>  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


More information about the Digitalmars-d mailing list