Article View: comp.std.c
Article #1890Another sizeof question
From: Christopher R Volpe
Date: Sun, 28 Oct 1990 07:40
Date: Sun, 28 Oct 1990 07:40
13 lines
885 bytes
885 bytes
Can someone tell me whether "sizeof" expressions are allowed as operands of "#if"? I'm trying to do some conditional compilation based on the size of some data structure, and I get parse errors before sizeof. The Bible says "sizeof" yields a constant integer, and that #if requires an integral constant expression, so I can't tell what's wrong. Can someone clue me in? Thanks. BTW, I'm using gcc to compile. ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com
Technical Details
Message-ID:
<13171@crdgw1.crd.ge.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!crdgw1!camelback!volpeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.std.c Subject: Another sizeof question Message-ID: <13171@crdgw1.crd.ge.com> Date: 28 Oct 90 07:40:49 GMT Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 13