Article View: comp.std.c
Article #4980Re: Nested MACROS ??
From: Christopher R Volpe
Date: Tue, 02 Apr 1996 21:32
Date: Tue, 02 Apr 1996 21:32
20 lines
1154 bytes
1154 bytes
Stan Novinsky wrote: > > I am using a nested MACRO. The problem is that only the > inner part is execur > > Given the following MACRO definitions and code, > > #define CUBE(X) ((x * x) * x) > #define ABS(X) ((x < 0) ? -(x) : (x)) > > #define NEST(X) (ABS(CUBE(X))) It would probably help if you didn't mix'n'match capital X's and lowercase x's in your macro "prototype" and replacement list. -- Chris Volpe Phone: (518) 387-7766 (Dial Comm 8*833 GE Corporate R&D Fax: (518) 387-6560 PO Box 8, Schenectady, NY 12301 Email: volpecr@crd.ge.com
Technical Details
Message-ID:
<31619CE6.4284@ash.crd.ge.com>Path:
arc1-ca.pugleaf.net!news.crd.ge.com!usenetReferences:
<4jgkno$mrr@aplinfo.jhuapl.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.crd.ge.com!usenet From: Christopher R Volpe <volpe@ash.crd.ge.com> Newsgroups: comp.std.c Subject: Re: Nested MACROS ?? Date: Tue, 02 Apr 1996 16:32:22 -0500 Organization: GE Corporate Research & Development, Schenectady, NY Message-ID: <31619CE6.4284@ash.crd.ge.com> References: <4jgkno$mrr@aplinfo.jhuapl.edu> NNTP-Posting-Host: bart.crd.ge.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m) To: Stan Novinsky <stan_novinsky@jhuapl.edu>