CTFE is getting there
Martin Nowak
dawg at dawgfoto.de
Sat Nov 12 20:23:57 PST 2011
On Sun, 13 Nov 2011 03:54:32 +0100, Bernard Helyer <b.helyer at gmail.com>
wrote:
> On Sun, 13 Nov 2011 01:28:54 +0100, Martin Nowak wrote:
>
>> D_InlineAsm_X86 is just a normal version tag and does not imply asm
>> code, so it has to.
>
> D_InlineAsm_X86 is intended to be defined when an implementation supports
> inline asm for x86. The compiler, when running CTFE, does not, so it
> should not be defined.
It must not necessarily be used to enclose asm code.
string platform()
{
version (D_InlineAsm_X86)
return "X86,ASM";
else version (D_InlineAsm_X86_64)
return "X86_64,ASM";
}
enum target = platform();
More information about the Digitalmars-d
mailing list