delorie.com/archives/browse.cgi | search |
Date: | Fri, 18 Jul 1997 08:31:00 -0400 (EDT) |
Message-Id: | <199707181231.IAA06259@delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | chirayu AT radiolink DOT net |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <1.5.4.16.19970718174239.35bf8ec2@giasbga.vsnl.net.in> (message |
from Chirayu Krishnappa on Fri, 18 Jul 1997 08:10:32 -0400 (EDT)) | |
Subject: | Re: sizeof() in #if |
> However, gcc chokes on the #if sizeof(int)==2 line. Is'nt sizeof() a compile > time operator? Yes, but the compiler doesn't get control until *after* the preprocessor, which is the part that handles #if. The preprocessor does not know how big an int is.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |