Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2001 11:36:33 -0800
From:      Farooq Mela <fmela0@sm.socccd.cc.ca.us>
To:        Greywolf <greywolf@starwolf.com>
Cc:        Shankar Agarwal <shankar_agarwal@net.com>, tech-kern@netbsd.org, bsd hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Question regarding the array of size 0.
Message-ID:  <3AB7B141.6CB14ADF@sm.socccd.cc.ca.us>
References:  <Pine.NEB.4.30.0103201101010.5239-100000@starjumper.starwolf.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greywolf wrote:
> #         struct {                        \
> #             int8_t pad[ (sizeof (register_t) < sizeof (x))  \
> #                 ? 0                 \
> #                 : sizeof (register_t) - sizeof (x)];    \

> I thought ?: were evaluated at run-time, not compile-time?

sizeof() is evaluated at compile time.

-- 
farooq <fmela0@sm.socccd.cc.ca.us>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB7B141.6CB14ADF>