Re: __builtin_constant_p fails for Intel compilation?
Re: __builtin_constant_p fails for Intel compilation?
- Subject: Re: __builtin_constant_p fails for Intel compilation?
- From: Alexey Proskuryakov <email@hidden>
- Date: Fri, 13 Jan 2006 12:09:24 +0300
- Thread-topic: __builtin_constant_p fails for Intel compilation?
On 13.01.2006 11:35, "Eric Albert" <email@hidden> wrote:
>> Done, rdar://4407750. I wonder what it does recognize as a constant
>> expression, if not even a zero :)
>
> The problem isn't that 0 is non-const, but rather than EndianU32_NtoB
> doesn't expand to a constant expression.
Trying hard to see what else could have confused it... Ah!
int f(int x);
enum {
kConst = 0 ? f(1) : 1
};
> Sorry; I got the name wrong. It's OSSwapHostToBigConstInt32. As with
> the other OSSwap* APIs, you can find it in <libkern/OSByteOrder.h>.
Thank you, this works as advertized!
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden