From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25328 invoked by alias); 3 Jul 2002 01:43:15 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 25309 invoked from network); 3 Jul 2002 01:43:10 -0000 Received: from unknown (HELO home18.riedel.org) (24.30.146.155) by sources.redhat.com with SMTP; 3 Jul 2002 01:43:10 -0000 Received: (qmail 31337 invoked by uid 321); 3 Jul 2002 01:43:09 -0000 Date: Tue, 02 Jul 2002 18:43:00 -0000 Message-ID: <20020703014309.31336.qmail@home18.riedel.org> to: Gokhan Kisacikoglu CC: gcc-help@gcc.gnu.org Subject: Re: Preprocess, but do not expand macros? From: Larry Riedel reply-to: Larry Riedel in-reply-to: <3D2248CF.765D2085@centropolisfx.com> References: <20020703001242.31210.qmail@home18.riedel.org> <3D2248CF.765D2085@centropolisfx.com> X-SW-Source: 2002-07/txt/msg00026.txt.bz2 > > Is there a simple way for me to tell gcc/cpp to run > > the preprocessor, but do nothing more than remove the > > code which would not be present after if/ifdef/ifndef? > > Well the macros, namely "define" statements, are part > of the preprocessor directives. [...] To clarify, I would want the #define directives to be processed, since otherwise the if/ifdef/ifndef might not be meaningfully evaluated. I simply do not want the symbols defined by the #defines to be expanded. before: #define PI 3.14 #ifdef PI a = PI #endif after: a = PI instead of: a = 3.14 Larry