www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/22/08:47:34

Date: Tue, 22 Jul 1997 08:47:03 -0400 (EDT)
Message-Id: <1.5.4.16.19970722181904.354fcc54@giasbga.vsnl.net.in>
Mime-Version: 1.0
To: DJ Delorie <dj AT delorie DOT com>
From: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Subject: Re: sizeof() in #if
Cc: djgpp AT delorie DOT com

>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.


Sorry, never thought that way! It wd be nice if limits.h also defined
constants as to how many bits an int/etc take  (0 bits if not applicable).
Neway, using the limits.h approach. Not the most eleganmt, but works. Thanks.

Bye,

Chirayu Krishnappa:
------------------
e-mail: chirayu AT poboxes DOT com
Phone:  91 080 3332616.
============================================================================
==========

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019